Change GL include in scons check so it actually works under mingw

(cherry-picked from commit f53237b20f)
This commit is contained in:
loonycyborg 2018-05-31 21:36:41 +03:00
parent 69c978cb9e
commit 2dbb8e48ee

View file

@ -9,7 +9,7 @@ def CheckOpenGL(context):
if env["PLATFORM"] == "win32":
env.AppendUnique(LIBS = ["opengl32"])
test_program += "#include <GL/opengl32.h>\n"
test_program += "#include <windows.h>\n#include <GL/gl.h>\n"
elif env["PLATFORM"] == "darwin":
env.AppendUnique(FRAMEWORKS = "OpenGL")
test_program += "#include <OpenGL/gl.h>\n"