Skip to content

Commit

Permalink
Revert "GL: Use SDL2 GL headers on all platforms."
Browse files Browse the repository at this point in the history
This reverts commit 06fc4b3.
  • Loading branch information
dsvensson committed Nov 24, 2023
1 parent 022f78c commit 6cae9e5
Show file tree
Hide file tree
Showing 2 changed files with 12,602 additions and 2 deletions.
34 changes: 32 additions & 2 deletions src/gl_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,43 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef __GL_LOCAL_H__
#define __GL_LOCAL_H__

#include <SDL_opengl.h>
#include <SDL_opengl_glext.h>
#ifdef __APPLE__

#include <OpenGL/gl.h>
#ifdef GL_GLEXT_VERSION
#undef GL_GLEXT_VERSION
#endif
#ifdef GL_DRAW_FRAMEBUFFER_BINDING
#undef GL_DRAW_FRAMEBUFFER_BINDING
#endif
#include "opengl/glext.h" // Should be <OpenGL/glext.h> but appears broken on newer macOS

#else // __APPLE__

#include <GL/gl.h>

#ifdef __GNUC__
#include <GL/glext.h>
#endif // __GNUC__

#ifdef _MSC_VER
#include <glext.h>
#endif

#ifndef _WIN32
#include <GL/glx.h>
#endif // _WIN32
#endif // __APPLE__

#include "gl_model.h"
#include "r_framestats.h"
#include "r_trace.h"
#include "r_local.h"
//#include "gl_texture.h"

#ifndef APIENTRY
#define APIENTRY
#endif

void R_TimeRefresh_f (void);
texture_t *R_TextureAnimation(entity_t* ent, texture_t *base);
Expand Down
Loading

0 comments on commit 6cae9e5

Please sign in to comment.