From 1386e68b2b923a0a903f6c1915869fa2544595da Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 21 Feb 2012 16:38:00 +0100 Subject: Add GL_BGR to the list of defined GL constants, right next to GL_BGRA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gui/opengl/qopenglfunctions.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui') 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 -- cgit v1.2.3