Part: Fix build with pch

Move QtAll inclusion (which includes GL itself) after manually including
<GL/glext.h> to correctly get ARB extensions.
This commit is contained in:
Yuri D'Elia
2024-01-02 17:35:43 +01:00
parent 91440e6103
commit 755bad25da

View File

@@ -62,13 +62,8 @@
#include <boost/regex.hpp>
#include <boost/algorithm/string/predicate.hpp>
// Qt Toolkit
#ifndef __QtAll__
# include <Gui/QtAll.h>
#endif
// GL
// Include glext before InventorAll
// Include glext before QtAll/InventorAll
#ifdef FC_OS_WIN32
# include <GL/gl.h>
# include <GL/glext.h>
@@ -87,6 +82,11 @@
// Should come after glext.h to avoid warnings
#include <Inventor/C/glue/gl.h>
// Qt Toolkit
#ifndef __QtAll__
# include <Gui/QtAll.h>
#endif
// Inventor includes OpenGL
#ifndef __InventorAll__
# include <Gui/InventorAll.h>