diff --git a/src/graphics/C4Shader.h b/src/graphics/C4Shader.h index 18549333b..edfbbf795 100644 --- a/src/graphics/C4Shader.h +++ b/src/graphics/C4Shader.h @@ -22,6 +22,12 @@ #include "StdMeshMath.h" #include "C4Surface.h" +#ifdef _WIN32 +#include +#endif + +#include + // Shader version const int C4Shader_Version = 150; // GLSL 1.50 / OpenGL 3.2 diff --git a/src/graphics/C4Surface.h b/src/graphics/C4Surface.h index 7cfffeee1..3db808572 100644 --- a/src/graphics/C4Surface.h +++ b/src/graphics/C4Surface.h @@ -21,14 +21,6 @@ #include #include -#ifdef _WIN32 -#include -#endif - -#ifndef USE_CONSOLE -#include -#endif - #include // blitting modes @@ -83,8 +75,8 @@ public: int *dbg_idx; #endif #ifndef USE_CONSOLE - GLenum Format; // used color format in textures - CStdGLCtx * pCtx; + unsigned int Format; // used color format in textures + CStdGLCtx * pCtx; #endif std::vector textures; // textures BYTE byBytesPP; // bytes per pixel (2 or 4) @@ -184,7 +176,7 @@ class C4TexRef public: LOCKED_RECT texLock; // current lock-data #ifndef USE_CONSOLE - GLuint texName; + unsigned int texName; #endif int iSizeX; int iSizeY;