[Git][wine/wine][master] wined3d/gl: Only check GL context when accessing onscreen resources.