Prevent GL/gl.h from including system glext.h
This allows us to then use the up-to-date qopenglext.h header on Linux too. Some distro's are not yet shipping OpenGL 4.x compatible headers. This fixes compilation of Qt on CentOS 5.8 and RHEL Change-Id: Ia8022e0aaf215dac7ea2a23dc82c3ac117d9fd53 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
parent
1fbfbf6b6e
commit
dca90252a7
@ -95,6 +95,7 @@ typedef GLfloat GLdouble;
|
||||
# if defined(Q_OS_WIN)
|
||||
# include <QtCore/qt_windows.h>
|
||||
# endif
|
||||
# define GL_GLEXT_LEGACY // Prevents GL/gl.h form #including system glext.h
|
||||
# include <GL/gl.h>
|
||||
# include <QtGui/qopenglext.h>
|
||||
# endif // Q_OS_MAC
|
||||
|
Loading…
x
Reference in New Issue
Block a user