Browse Source

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
pull/81/head
raysan5 9 years ago
parent
commit
4e57bd1f18
4 changed files with 18304 additions and 18435 deletions
  1. +1
    -1
      src/core.c
  2. +6972
    -7101
      src/glad.c
  3. +11328
    -11331
      src/glad.h
  4. +3
    -2
      src/rlgl.c

+ 1
- 1
src/core.c View File

@ -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

+ 6972
- 7101
src/glad.c
File diff suppressed because it is too large
View File


+ 11328
- 11331
src/glad.h
File diff suppressed because it is too large
View File


+ 3
- 2
src/rlgl.c View File

@ -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

Loading…
Cancel
Save