mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-11 14:35:50 +00:00
Fix build.
This commit is contained in:
parent
1c2c2e1a37
commit
0171023edc
@ -397,6 +397,7 @@ void gfx_ctx_input_driver(const input_driver_t **input, void **input_data)
|
|||||||
*input = NULL;
|
*input = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_OPENGL
|
||||||
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
|
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
|
||||||
{
|
{
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
@ -409,3 +410,5 @@ void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
|
|||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#define _SDL_CTX_H
|
#define _SDL_CTX_H
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_opengl.h"
|
|
||||||
#include "SDL_version.h"
|
#include "SDL_version.h"
|
||||||
|
|
||||||
#if SDL_VERSION_ATLEAST(1, 3, 0)
|
#if SDL_VERSION_ATLEAST(1, 3, 0)
|
||||||
|
@ -21,10 +21,15 @@
|
|||||||
#include "../boolean.h"
|
#include "../boolean.h"
|
||||||
#include "../driver.h"
|
#include "../driver.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_OPENGL
|
||||||
|
#include "gl_common.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SDL
|
#ifdef HAVE_SDL
|
||||||
#include "SDL_syswm.h"
|
#include "SDL_syswm.h"
|
||||||
#endif
|
#endif
|
||||||
@ -67,7 +72,9 @@ 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
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_OPENGL
|
||||||
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate);
|
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user