summaryrefslogtreecommitdiffstats
path: root/qtinterface/interface_tqt3
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-04-24 12:18:37 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-27 02:45:51 +0200
commit5cdb5457400812f7d9d2a92c6ee4922c4af627c7 (patch)
tree118841fa26d59800eeb57e71b12f10551a925888 /qtinterface/interface_tqt3
parente43a3c98104250fe06959b5352d17bff6e611bfb (diff)
downloadtqtinterface-5cdb5457400812f7d9d2a92c6ee4922c4af627c7.tar.gz
tqtinterface-5cdb5457400812f7d9d2a92c6ee4922c4af627c7.zip
Allow tqtinterface to build without OpenGL support.
This should close bug 2645. Some cosmetics here and there. Signed-off-by: gregory guy <gregory-tde@laposte.net> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'qtinterface/interface_tqt3')
-rw-r--r--qtinterface/interface_tqt3/tqgl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qtinterface/interface_tqt3/tqgl.cpp b/qtinterface/interface_tqt3/tqgl.cpp
index 33c8bb6..3ec7177 100644
--- a/qtinterface/interface_tqt3/tqgl.cpp
+++ b/qtinterface/interface_tqt3/tqgl.cpp
@@ -18,6 +18,12 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <tqt.h>
+
+#ifdef HAVE_OPENGL
#include <ntqgl.h>
+#endif