From d584292aa2e17dbb7cdfee24b442cd9cb66e5aac Mon Sep 17 00:00:00 2001 From: Andreas Holzammer Date: Mon, 23 Jan 2012 09:37:04 +0100 Subject: Make it possible to compile with -no-opengl. This takes out the dependency to the header files of OpenGl. The ifdef QT_NO_OPENGL in the opengl headers are needed, as qmake adds depends in the makefiles for all GUI headers. Task-number: QTBUG-23207 Change-Id: If31448ee35fd8c39194c7cb7d62273fbc6def883 Reviewed-by: Stephen Kelly Reviewed-by: Gunnar Sletta --- src/gui/opengl/qopenglbuffer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/opengl/qopenglbuffer.h') diff --git a/src/gui/opengl/qopenglbuffer.h b/src/gui/opengl/qopenglbuffer.h index a3e5743a156..d76eb47be92 100644 --- a/src/gui/opengl/qopenglbuffer.h +++ b/src/gui/opengl/qopenglbuffer.h @@ -42,6 +42,8 @@ #ifndef QOPENGLBUFFER_H #define QOPENGLBUFFER_H +#ifndef QT_NO_OPENGL + #include #include @@ -129,4 +131,6 @@ QT_END_NAMESPACE QT_END_HEADER +#endif // QT_NO_OPENGL + #endif -- cgit v1.2.3