Ver código fonte

Replaced GLEW by GLAD

Removed GLEW external dependency, now it works with GLAD
Kept GLEW path, just in case... detected weird behaviour when testing
with gDEBugger
raysan5 9 anos atrás
pai
commit
4e57bd1f18
4 arquivos alterados com 6 adições e 5 exclusões
  1. 1 1
      src/core.c
  2. 1 1
      src/glad.c
  3. 1 1
      src/glad.h
  4. 3 2
      src/rlgl.c

+ 1 - 1
src/core.c

@@ -55,7 +55,7 @@
 
 #if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
 
-    #define GLEW_EXTENSIONS_LOADER
+    #define GLAD_EXTENSIONS_LOADER
     #if defined(GLEW_EXTENSIONS_LOADER)
         #define GLEW_STATIC
         #include <GL/glew.h>        // GLEW extensions loading lib

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
src/glad.c


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
src/glad.h


+ 3 - 2
src/rlgl.c

@@ -46,8 +46,9 @@
     #ifdef __APPLE__                // OpenGL include for OSX
         #include <OpenGL/gl3.h>
     #else
-        #include <GL/glew.h>        // GLEW header, includes OpenGL headers
-        //#include "glad.h"         // glad header, includes OpenGL headers
+        //#define GLEW_STATIC
+        //#include <GL/glew.h>        // GLEW header, includes OpenGL headers
+        #include "glad.h"         // glad header, includes OpenGL headers
     #endif
 #endif
 

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff