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 "sdlwrap.h"
|
||||||
#include "../compat/strl.h"
|
#include "../compat/strl.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_SDL
|
||||||
#define NO_SDL_GLEXT
|
#define NO_SDL_GLEXT
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_opengl.h"
|
#include "SDL_opengl.h"
|
||||||
#include "../input/rarch_sdl_input.h"
|
#include "../input/rarch_sdl_input.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CG
|
#ifdef HAVE_CG
|
||||||
#include "shader_cg.h"
|
#include "shader_cg.h"
|
||||||
|
@ -81,7 +83,9 @@ static const GLfloat white_color[] = {
|
||||||
1, 1, 1, 1,
|
1, 1, 1, 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef HAVE_SDL
|
||||||
#define LOAD_SYM(sym) if (!p##sym) { SDL_SYM_WRAP(p##sym, #sym) }
|
#define LOAD_SYM(sym) if (!p##sym) { SDL_SYM_WRAP(p##sym, #sym) }
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_FBO
|
#ifdef HAVE_FBO
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
#include "../boolean.h"
|
#include "../boolean.h"
|
||||||
|
|
||||||
#include "../driver.h"
|
#include "../driver.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_SDL
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_version.h"
|
#include "SDL_version.h"
|
||||||
#include "SDL_syswm.h"
|
#include "SDL_syswm.h"
|
||||||
|
@ -40,6 +42,7 @@
|
||||||
void *sym__ = SDL_GL_GetProcAddress(symbol); \
|
void *sym__ = SDL_GL_GetProcAddress(symbol); \
|
||||||
memcpy(&(sym), &sym__, sizeof(void*)); \
|
memcpy(&(sym), &sym__, sizeof(void*)); \
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void sdlwrap_set_swap_interval(unsigned interval, bool inited);
|
void sdlwrap_set_swap_interval(unsigned interval, bool inited);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue