Fix BGRA on ES Issue 109.
git-svn-id: http://skia.googlecode.com/svn/trunk@702 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrGLConfig.h b/gpu/include/GrGLConfig.h
index 2bc535d..e21adb7 100644
--- a/gpu/include/GrGLConfig.h
+++ b/gpu/include/GrGLConfig.h
@@ -182,8 +182,8 @@
// Windows where we match GDI's order).
#ifndef GR_GL_32BPP_COLOR_FORMAT
#if GR_WIN32_BUILD
- #define GR_GL_32BPP_COLOR_FORMAT GL_BGRA
- #else
+ #define GR_GL_32BPP_COLOR_FORMAT GR_BGRA //use GR prefix because this
+ #else //may be an extension.
#define GR_GL_32BPP_COLOR_FORMAT GL_RGBA
#endif
#endif
@@ -247,6 +247,10 @@
};
}
+// BGRA format
+
+#define GR_BGRA 0x80E1
+
// FBO
#define GR_FRAMEBUFFER 0x8D40
#define GR_FRAMEBUFFER_COMPLETE 0x8CD5