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
This commit is contained in:
raysan5 2016-01-22 01:22:45 +01:00
parent 455be7f6f6
commit 4e57bd1f18
4 changed files with 17546 additions and 17677 deletions

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

12859
src/glad.c

File diff suppressed because one or more lines are too long

22357
src/glad.h

File diff suppressed because one or more lines are too long

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