This makes our QPlatformOpenGLContext private subclass simpler. As a slightly unrelated change, this patch also fixes a bug where our platform opengl context may return a wrong surface format if surfaceless contexts are unsupported.