Hopefully fixed the Windows build (see issue #921.)

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2014-08-27 08:17:40 -03:00
parent 626701fc2b
commit b59e088d6c
3 changed files with 5 additions and 5 deletions
+1 -2
View File
@@ -1034,7 +1034,7 @@ set(LOVE_SRC_3P_STB
src/libraries/stb/stb_image.h src/libraries/stb/stb_image.h
) )
add_library(love_3p_stb ${LOVE_SRC_3P_STB}) # stb_image has no implementation files of its own.
# #
# utf8 # utf8
@@ -1081,7 +1081,6 @@ set(LOVE_3P
love_3p_lodepng love_3p_lodepng
love_3p_luasocket love_3p_luasocket
love_3p_noise1234 love_3p_noise1234
love_3p_stb
love_3p_wuff love_3p_wuff
) )
-2
View File
@@ -1,8 +1,6 @@
#include <string.h> #include <string.h>
#include "glad.hpp" #include "glad.hpp"
#define GLAD_USE_SDL
namespace glad { namespace glad {
+4 -1
View File
@@ -33,6 +33,9 @@
// C // C
#include <cstring> #include <cstring>
// For SDL_GL_GetProcAddress.
#include <SDL_video.h>
namespace love namespace love
{ {
namespace graphics namespace graphics
@@ -58,7 +61,7 @@ bool OpenGL::initContext()
if (contextInitialized) if (contextInitialized)
return true; return true;
if (!gladLoadGL()) if (!gladLoadGLLoader(SDL_GL_GetProcAddress))
return false; return false;
initOpenGLFunctions(); initOpenGLFunctions();