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/qopenglframebufferobject.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/opengl/qopenglframebufferobject.h') diff --git a/src/gui/opengl/qopenglframebufferobject.h b/src/gui/opengl/qopenglframebufferobject.h index 340f5783de..c1c6a71b3c 100644 --- a/src/gui/opengl/qopenglframebufferobject.h +++ b/src/gui/opengl/qopenglframebufferobject.h @@ -42,6 +42,8 @@ #ifndef QOPENGLFRAMEBUFFEROBJECT_H #define QOPENGLFRAMEBUFFEROBJECT_H +#ifndef QT_NO_OPENGL + #include #include @@ -159,4 +161,7 @@ private: QT_END_NAMESPACE QT_END_HEADER + +#endif // QT_NO_OPENGL + #endif // QOPENGLFRAMEBUFFEROBJECT_H -- cgit v1.2.3