From: Simon Hausmann Date: Tue, 21 Feb 2012 15:38:00 +0000 (+0100) Subject: Add GL_BGR to the list of defined GL constants, right next to GL_BGRA X-Git-Tag: qt-v5.0.0-alpha1~873 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1386e68b2b923a0a903f6c1915869fa2544595da;p=profile%2Fivi%2Fqtbase.git 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 --- diff --git a/src/gui/opengl/qopenglfunctions.h b/src/gui/opengl/qopenglfunctions.h index 881c27f..4e778dd 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