mirror of
https://github.com/love2d/love.git
synced 2026-08-21 21:15:09 +02:00
Hopefully fixed the Windows build (see issue #921.)
--HG-- branch : minor
This commit is contained in:
+1
-2
@@ -1034,7 +1034,7 @@ set(LOVE_SRC_3P_STB
|
||||
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
|
||||
@@ -1081,7 +1081,6 @@ set(LOVE_3P
|
||||
love_3p_lodepng
|
||||
love_3p_luasocket
|
||||
love_3p_noise1234
|
||||
love_3p_stb
|
||||
love_3p_wuff
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#include <string.h>
|
||||
#include "glad.hpp"
|
||||
|
||||
#define GLAD_USE_SDL
|
||||
|
||||
namespace glad {
|
||||
|
||||
|
||||
|
||||
@@ -33,6 +33,9 @@
|
||||
// C
|
||||
#include <cstring>
|
||||
|
||||
// For SDL_GL_GetProcAddress.
|
||||
#include <SDL_video.h>
|
||||
|
||||
namespace love
|
||||
{
|
||||
namespace graphics
|
||||
@@ -58,7 +61,7 @@ bool OpenGL::initContext()
|
||||
if (contextInitialized)
|
||||
return true;
|
||||
|
||||
if (!gladLoadGL())
|
||||
if (!gladLoadGLLoader(SDL_GL_GetProcAddress))
|
||||
return false;
|
||||
|
||||
initOpenGLFunctions();
|
||||
|
||||
Reference in New Issue
Block a user