diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-21 16:38:00 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-21 22:31:00 +0100 |
commit | 1386e68b2b923a0a903f6c1915869fa2544595da (patch) | |
tree | 0c98ac8e7e08c5cb9604ac94b0eb63255b14487b /src/gui | |
parent | a0da58b5dd358b9728fc428153463cbca9c23689 (diff) |
Add GL_BGR to the list of defined GL constants, right next to GL_BGRA
We use this one in WebKit's OpenGL texture mapper and it would be
convenient to have it here if it's not defined by the platform.
Change-Id: Idae33e49773e21c6290b164bccd4f209cf9820a2
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/opengl/qopenglfunctions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/opengl/qopenglfunctions.h b/src/gui/opengl/qopenglfunctions.h index 881c27f2c9..4e778dda66 100644 --- a/src/gui/opengl/qopenglfunctions.h +++ b/src/gui/opengl/qopenglfunctions.h @@ -2073,6 +2073,9 @@ inline void QOpenGLFunctions::glVertexAttribPointer(GLuint indx, GLint size, GLe #ifndef GL_RGBA4 #define GL_RGBA4 0x8056 #endif +#ifndef GL_BGR +#define GL_BGR 0x80E0 +#endif #ifndef GL_BGRA #define GL_BGRA 0x80E1 #endif |