mirror of
https://github.com/libretro/RetroArch
synced 2025-03-14 01:19:01 +00:00
Rename to gfx_ctx_set_projection
This commit is contained in:
parent
6ff8154d19
commit
1c2c2e1a37
@ -344,7 +344,7 @@ const char * ps3_get_resolution_label(uint32_t resolution)
|
||||
}
|
||||
}
|
||||
|
||||
void gfx_ctx_set_rotation(gl_t *gl, bool allow_rotate)
|
||||
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
|
||||
{
|
||||
if(allow_rotate)
|
||||
{
|
||||
|
@ -397,7 +397,7 @@ void gfx_ctx_input_driver(const input_driver_t **input, void **input_data)
|
||||
*input = NULL;
|
||||
}
|
||||
|
||||
void gfx_ctx_set_rotation(gl_t *gl, bool allow_rotate)
|
||||
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
|
||||
{
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
@ -67,5 +67,7 @@ void gfx_ctx_set_filtering(unsigned index, bool set_smooth);
|
||||
void gfx_ctx_get_available_resolutions (void);
|
||||
#endif
|
||||
|
||||
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate);
|
||||
|
||||
#endif
|
||||
|
||||
|
2
gfx/gl.c
2
gfx/gl.c
@ -425,7 +425,7 @@ static void gl_init_fbo(gl_t *gl, unsigned width, unsigned height)
|
||||
|
||||
void gl_set_projection(gl_t *gl, bool allow_rotate)
|
||||
{
|
||||
gfx_ctx_set_rotation(gl, allow_rotate);
|
||||
gfx_ctx_set_projection(gl, allow_rotate);
|
||||
gl_shader_set_proj_matrix();
|
||||
}
|
||||
|
||||
|
@ -615,7 +615,7 @@ static void check_window(gl_t *gl)
|
||||
|
||||
void gl_set_projection(gl_t *gl, bool allow_rotate)
|
||||
{
|
||||
gfx_ctx_set_rotation(gl, allow_rotate);
|
||||
gfx_ctx_set_projection(gl, allow_rotate);
|
||||
gl_shader_set_proj_matrix();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user