mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-18 00:18:22 +00:00
Add some HAVE_SDL ifdefs to gl.c
This commit is contained in:
parent
4fdfe6a935
commit
c3cb3ba876
4
gfx/gl.c
4
gfx/gl.c
@ -32,10 +32,12 @@
|
||||
#include "sdlwrap.h"
|
||||
#include "../compat/strl.h"
|
||||
|
||||
#ifdef HAVE_SDL
|
||||
#define NO_SDL_GLEXT
|
||||
#include "SDL.h"
|
||||
#include "SDL_opengl.h"
|
||||
#include "../input/rarch_sdl_input.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CG
|
||||
#include "shader_cg.h"
|
||||
@ -81,7 +83,9 @@ static const GLfloat white_color[] = {
|
||||
1, 1, 1, 1,
|
||||
};
|
||||
|
||||
#ifdef HAVE_SDL
|
||||
#define LOAD_SYM(sym) if (!p##sym) { SDL_SYM_WRAP(p##sym, #sym) }
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FBO
|
||||
#ifdef _WIN32
|
||||
|
@ -24,6 +24,8 @@
|
||||
#include "../boolean.h"
|
||||
|
||||
#include "../driver.h"
|
||||
|
||||
#ifdef HAVE_SDL
|
||||
#include "SDL.h"
|
||||
#include "SDL_version.h"
|
||||
#include "SDL_syswm.h"
|
||||
@ -40,6 +42,7 @@
|
||||
void *sym__ = SDL_GL_GetProcAddress(symbol); \
|
||||
memcpy(&(sym), &sym__, sizeof(void*)); \
|
||||
}
|
||||
#endif
|
||||
|
||||
void sdlwrap_set_swap_interval(unsigned interval, bool inited);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user