--- a/src/pvr2/glutil.c Mon Mar 05 11:41:03 2012 +1000 +++ b/src/pvr2/glutil.c Tue Mar 20 08:29:38 2012 +1000 @@ -49,6 +49,14 @@ return isGLExtensionSupported("GL_ARB_texture_mirrored_repeat"); } +gboolean isGLBGRATextureSupported() +{ + /* Note: e.g. Tegra 3 reports GL_EXT_bgra, but it doesn't actually work. + * Need to check this with NVIDIA, in meantime assume GLES2 doesn't have + * BGRA support */ + return !isOpenGLES2() && isGLExtensionSupported("GL_EXT_bgra"); +} + gboolean isGLShaderSupported() {