Fix cmake-test for Dynamic OpenGL.

Change-Id: I604501d07b4728c5158e88a6760b9f1e31311991
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
Friedemann Kleint 2014-08-04 10:22:00 +02:00
parent 72037c804d
commit 61269c26f6

View File

@ -40,24 +40,31 @@
****************************************************************************/
#if GL_IMPLEMENTATION_GLES2
#include <GLES2/gl2.h>
#elif GL_IMPLEMENTATION_GL
#include <qglobal.h>
#ifdef Q_OS_WIN
#include <qt_windows.h>
#endif
#ifdef Q_OS_MAC
#include <OpenGL/gl.h>
#ifndef QT_OPENGL_DYNAMIC
# if defined(GL_IMPLEMENTATION_GLES2)
# include <GLES2/gl2.h>
# elif defined(GL_IMPLEMENTATION_GL)
# ifdef Q_OS_WIN
# include <qt_windows.h>
# endif
# ifdef Q_OS_MAC
# include <OpenGL/gl.h>
# else
# include <GL/gl.h>
# endif
# endif
#else
#include <GL/gl.h>
#endif
# include <QOpenGLFunctions>
#endif
int main(int argc, char **argv)
{
#ifndef QT_OPENGL_DYNAMIC
glGetError();
#else
QOpenGLFunctions functions;
functions.glGetError();
#endif
return 0;
}