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:
Sean Harmer 2013-01-14 14:10:40 +00:00 committed by The Qt Project
parent 1fbfbf6b6e
commit dca90252a7

View File

@ -95,6 +95,7 @@ typedef GLfloat GLdouble;
# if defined(Q_OS_WIN) # if defined(Q_OS_WIN)
# include <QtCore/qt_windows.h> # include <QtCore/qt_windows.h>
# endif # endif
# define GL_GLEXT_LEGACY // Prevents GL/gl.h form #including system glext.h
# include <GL/gl.h> # include <GL/gl.h>
# include <QtGui/qopenglext.h> # include <QtGui/qopenglext.h>
# endif // Q_OS_MAC # endif // Q_OS_MAC