From 54ec6d177e0e8fb04cd01e70461484a80ca1f7a4 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 11 Jul 2011 14:05:09 +0200 Subject: [PATCH] Bring OpenGL closer to compiling on Windows. Change-Id: I8ebb459f27a1054f8cb5524d2ff77988c6153557 Reviewed-on: http://codereview.qt.nokia.com/1421 Reviewed-by: Qt Sanity Bot Reviewed-by: Oliver Wolff --- src/opengl/opengl.pro | 6 ++++-- src/opengl/qgl.h | 2 +- src/opengl/qglpixelbuffer_p.h | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/opengl/opengl.pro b/src/opengl/opengl.pro index efc00a9..717e4dd 100644 --- a/src/opengl/opengl.pro +++ b/src/opengl/opengl.pro @@ -124,8 +124,10 @@ mac:!qpa { } win32:!wince*: { DEFINES += QT_NO_EGL - SOURCES += qgl_win.cpp \ - qglpixelbuffer_win.cpp + !qpa { + SOURCES += qgl_win.cpp \ + qglpixelbuffer_win.cpp + } } wince*: { SOURCES += qgl_wince.cpp \ diff --git a/src/opengl/qgl.h b/src/opengl/qgl.h index 26c0025..e08e2d2 100644 --- a/src/opengl/qgl.h +++ b/src/opengl/qgl.h @@ -52,7 +52,7 @@ QT_BEGIN_HEADER -#if defined(Q_WS_WIN) +#if defined(Q_OS_WIN) # include #endif diff --git a/src/opengl/qglpixelbuffer_p.h b/src/opengl/qglpixelbuffer_p.h index eb76104..05d8823 100644 --- a/src/opengl/qglpixelbuffer_p.h +++ b/src/opengl/qglpixelbuffer_p.h @@ -125,7 +125,7 @@ struct GLXFBConfig { #endif // Q_OS_HPUX -#elif defined(Q_WS_WIN) +#elif defined(Q_OS_WIN) DECLARE_HANDLE(HPBUFFERARB); #elif !defined(QT_NO_EGL) #include -- 2.7.4