intermediate commit (glad not initializing correctly)

This commit is contained in:
fysx
2013-12-06 23:37:01 +01:00
parent ec2bf449e9
commit 2037378d6a
8 changed files with 155 additions and 19 deletions
+1 -1
View File
@@ -5,7 +5,6 @@
namespace glad {
#ifdef GLAD_USE_SDL
#include <SDL.h>
#if !SDL_VERSION_ATLEAST(2,0,0)
@@ -7884,6 +7883,7 @@ static void find_core(void) {
bool gladLoadGLLoader(LOADER load) {
GLVersion.major = 0; GLVersion.minor = 0; GLVersion.gles = 0;
fp_glGetString = (pfn_glGetString)load("glGetString");
SDL_Log ("glad fp_glGetString %s", fp_glGetString);
if(fp_glGetString == NULL) return false;
find_core();
load_GL_VERSION_1_0(load);