Remove out-dated duplicate logic from qgl.h
We now use the updated logic for #including the correct GL headers already implemented in QtGui. This is needed to fix compilation of QtOpenGL on CentOS 5.8 and RHEL. Change-Id: Ifdedd13885566016073538f33aa6daf5902c3497 Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
parent
dca90252a7
commit
ff9aa64c99
@ -44,6 +44,7 @@
|
||||
|
||||
#ifndef QT_NO_OPENGL
|
||||
|
||||
#include <QtGui/qopengl.h>
|
||||
#include <QtWidgets/qwidget.h>
|
||||
#include <QtGui/qpaintengine.h>
|
||||
#include <QtOpenGL/qglcolormap.h>
|
||||
@ -54,33 +55,6 @@
|
||||
|
||||
QT_BEGIN_HEADER
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
# include <QtCore/qt_windows.h>
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
# if !defined(Q_OS_IOS)
|
||||
# include <OpenGL/gl.h>
|
||||
# else
|
||||
# if defined(QT_OPENGL_ES_2)
|
||||
# include <OpenGLES/ES2/gl.h>
|
||||
# endif
|
||||
# endif
|
||||
#elif defined(QT_OPENGL_ES_2)
|
||||
# include <GLES2/gl2.h>
|
||||
# else
|
||||
# include <GL/gl.h>
|
||||
# endif
|
||||
|
||||
#if defined(QT_OPENGL_ES_2)
|
||||
# ifndef GL_DOUBLE
|
||||
# define GL_DOUBLE GL_FLOAT
|
||||
# endif
|
||||
# ifndef GLdouble
|
||||
typedef GLfloat GLdouble;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user