aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include/GrGLConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/include/GrGLConfig.h')
-rw-r--r--gpu/include/GrGLConfig.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gpu/include/GrGLConfig.h b/gpu/include/GrGLConfig.h
index 2bc535d709..e21adb7578 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 @@ struct GrGLExts {
};
}
+// BGRA format
+
+#define GR_BGRA 0x80E1
+
// FBO
#define GR_FRAMEBUFFER 0x8D40
#define GR_FRAMEBUFFER_COMPLETE 0x8CD5