OpenGL: Generalize code for GFXGLWindowTarget on all platforms.