From 8f986bdce602dd91154d1c2d5e2060c7fc9238e2 Mon Sep 17 00:00:00 2001 From: learn_more Date: Fri, 13 Sep 2013 23:07:36 +0200 Subject: [PATCH] fix the windows build --- Sources/Draw/GLSparseShadowMapRenderer.h | 1 + Sources/Gui/Main.cpp | 2 ++ Sources/Imports/OpenGL.h | 8 +++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Sources/Draw/GLSparseShadowMapRenderer.h b/Sources/Draw/GLSparseShadowMapRenderer.h index bc2cd6fb..e6cc73ad 100644 --- a/Sources/Draw/GLSparseShadowMapRenderer.h +++ b/Sources/Draw/GLSparseShadowMapRenderer.h @@ -18,6 +18,7 @@ */ +#include #include "IGLShadowMapRenderer.h" #include "IGLDevice.h" diff --git a/Sources/Gui/Main.cpp b/Sources/Gui/Main.cpp index ee4d562b..beb8a08e 100644 --- a/Sources/Gui/Main.cpp +++ b/Sources/Gui/Main.cpp @@ -33,6 +33,8 @@ #include "../Core/ScriptManager.h" +#include //std::sort + //using namespace spades::gui; #ifdef WIN32 #include diff --git a/Sources/Imports/OpenGL.h b/Sources/Imports/OpenGL.h index 51c3830c..d63a5bdd 100644 --- a/Sources/Imports/OpenGL.h +++ b/Sources/Imports/OpenGL.h @@ -13,5 +13,11 @@ #include #include #else -#include // ? +#include + +// v3.3 / GL_ARB_occlusion_query2 +#ifndef GL_ANY_SAMPLES_PASSED +# define GL_ANY_SAMPLES_PASSED 0x8C2F +#endif + #endif \ No newline at end of file