Merge pull request #1669 from erwincoumans/master
fix some incompatibilities between google3/third_party/GL,EGL, glad
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
#include "OpenGLInclude.h"
|
#include "OpenGLInclude.h"
|
||||||
|
|
||||||
#include "third_party/GL/EGL/egl.h"
|
#include "third_party/GL/gl/include/EGL/egl.h"
|
||||||
#include "third_party/GL/gl/include/EGL/eglext.h"
|
#include "third_party/GL/gl/include/EGL/eglext.h"
|
||||||
#include "third_party/GL/gl/include/GL/gl.h"
|
#include "third_party/GL/gl/include/GL/gl.h"
|
||||||
|
|
||||||
|
|||||||
@@ -17,12 +17,20 @@ subject to the following restrictions:
|
|||||||
#ifndef __OPENGL_INCLUDE_H
|
#ifndef __OPENGL_INCLUDE_H
|
||||||
#define __OPENGL_INCLUDE_H
|
#define __OPENGL_INCLUDE_H
|
||||||
|
|
||||||
|
#ifdef BT_NO_GLAD
|
||||||
|
#include "third_party/GL/gl/include/EGL/egl.h"
|
||||||
|
#include "third_party/GL/gl/include/EGL/eglext.h"
|
||||||
|
#include "third_party/GL/gl/include/GL/gl.h"
|
||||||
|
#else
|
||||||
|
|
||||||
#ifdef B3_USE_GLFW
|
#ifdef B3_USE_GLFW
|
||||||
#include "glad/glad.h"
|
#include "glad/glad.h"
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#else
|
#else
|
||||||
#include "glad/glad.h"
|
#include "glad/glad.h"
|
||||||
#endif //B3_USE_GLFW
|
#endif //B3_USE_GLFW
|
||||||
|
#endif //BT_NO_GLAD
|
||||||
|
|
||||||
//disable glGetError
|
//disable glGetError
|
||||||
//#undef glGetError
|
//#undef glGetError
|
||||||
//#define glGetError MyGetError
|
//#define glGetError MyGetError
|
||||||
|
|||||||
@@ -17,12 +17,17 @@ subject to the following restrictions:
|
|||||||
#ifndef __OPENGL_INCLUDE_H
|
#ifndef __OPENGL_INCLUDE_H
|
||||||
#define __OPENGL_INCLUDE_H
|
#define __OPENGL_INCLUDE_H
|
||||||
|
|
||||||
|
#ifdef BT_NO_GLAD
|
||||||
|
#include "third_party/GL/gl/include/EGL/egl.h"
|
||||||
|
#include "third_party/GL/gl/include/EGL/eglext.h"
|
||||||
|
#include "third_party/GL/gl/include/GL/gl.h"
|
||||||
|
#else
|
||||||
#ifdef B3_USE_GLFW
|
#ifdef B3_USE_GLFW
|
||||||
#include <glad/glad.h>
|
#include <glad/glad.h>
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#else
|
#else
|
||||||
#include "glad/glad.h"
|
#include "glad/glad.h"
|
||||||
#endif //B3_USE_GLFW
|
#endif //B3_USE_GLFW
|
||||||
|
#endif //BT_NO_GLAD
|
||||||
#endif //__OPENGL_INCLUDE_H
|
#endif //__OPENGL_INCLUDE_H
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,6 @@
|
|||||||
|
|
||||||
#include<stdio.h>
|
#include<stdio.h>
|
||||||
#include<stdlib.h>
|
#include<stdlib.h>
|
||||||
#ifdef GLEW_STATIC
|
|
||||||
#include "glad/glad.h"
|
|
||||||
#else
|
|
||||||
#include <GL/glew.h>
|
|
||||||
#endif//GLEW_STATIC
|
|
||||||
|
|
||||||
#ifdef GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
|
#ifdef GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
|
||||||
#include "glad/glad_glx.h"
|
#include "glad/glad_glx.h"
|
||||||
|
|||||||
@@ -22,7 +22,13 @@
|
|||||||
#include "third_party/GL/gl/include/GL/gl.h"
|
#include "third_party/GL/gl/include/GL/gl.h"
|
||||||
#include "third_party/GL/gl/include/GL/glext.h"
|
#include "third_party/GL/gl/include/GL/glext.h"
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#ifdef BT_NO_GLAD
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
|
#else
|
||||||
|
#include "glad/glad.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif //NO_GLEW
|
#endif //NO_GLEW
|
||||||
#endif //GLEW_STATIC
|
#endif //GLEW_STATIC
|
||||||
#endif//(__APPLE__)
|
#endif//(__APPLE__)
|
||||||
|
|||||||
Reference in New Issue
Block a user