mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-23 04:51:56 +00:00
Fix Windows Build with SDL2
for some reason neo/tools/compilers/dmap/optimize.cpp included windows.h and GL/gl.h before including dmap.h, which indirectly includes qgl.h. This made things in qgl.h explode - seems like APIENTRYP in the QGLPROC() macro expanded to bullshit because of some APIENTRYP or APIENTRY definition in windows.h or GL/gl.h Those includes are totally unnecessary, dmap.h -> qgl.h already includes GL/gl.h, indirectly via SDL_opengl.h and in that setup things somehow are fine.
This commit is contained in:
parent
cf8695bb0f
commit
51f3acd21a
1 changed files with 3 additions and 1 deletions
|
@ -30,7 +30,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
//#pragma optimize( "", off )
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
// #ifdef WIN32 // DG: this caused trouble, especially with SDL2
|
||||
#if 0
|
||||
#include <windows.h>
|
||||
#include <GL/gl.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue