[PATCH 1/1] wined3d/gl: Only check GL context when accessing onscreen resources.