Fix build.

This commit is contained in:
Themaister 2012-05-27 21:24:55 +02:00
parent 1c2c2e1a37
commit 0171023edc
3 changed files with 11 additions and 2 deletions

View File

@ -397,6 +397,7 @@ void gfx_ctx_input_driver(const input_driver_t **input, void **input_data)
*input = NULL;
}
#ifdef HAVE_OPENGL
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
{
glMatrixMode(GL_PROJECTION);
@ -409,3 +410,5 @@ void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
}
#endif

View File

@ -17,7 +17,6 @@
#define _SDL_CTX_H
#include "SDL.h"
#include "SDL_opengl.h"
#include "SDL_version.h"
#if SDL_VERSION_ATLEAST(1, 3, 0)

View File

@ -21,10 +21,15 @@
#include "../boolean.h"
#include "../driver.h"
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#ifdef HAVE_OPENGL
#include "gl_common.h"
#endif
#ifdef HAVE_SDL
#include "SDL_syswm.h"
#endif
@ -64,10 +69,12 @@ bool gfx_ctx_menu_init(void)
#ifdef RARCH_CONSOLE
void gfx_ctx_set_filtering(unsigned index, bool set_smooth);
void gfx_ctx_get_available_resolutions (void);
void gfx_ctx_get_available_resolutions(void);
#endif
#ifdef HAVE_OPENGL
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate);
#endif
#endif