mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +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
|
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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "glad.hpp"
|
#include "glad.hpp"
|
||||||
|
|
||||||
#define GLAD_USE_SDL
|
|
||||||
|
|
||||||
namespace glad {
|
namespace glad {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user