mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-29 03:00:24 +00:00
PC fix build
This commit is contained in:
parent
b6131dfcd7
commit
15e16728f2
@ -398,7 +398,7 @@ void gfx_ctx_input_driver(const input_driver_t **input, void **input_data)
|
||||
}
|
||||
|
||||
#ifdef HAVE_OPENGL
|
||||
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
|
||||
void gfx_ctx_set_projection(gl_t *gl, ortho_t *ortho, bool allow_rotate)
|
||||
{
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
@ -227,6 +227,7 @@ extern const GLfloat white_color[];
|
||||
|
||||
void gl_render_msg_post(gl_t *gl)
|
||||
{
|
||||
ortho_t ortho = {0}; //dummy - no overscan on PC
|
||||
#ifdef HAVE_FREETYPE
|
||||
// Go back to old rendering path.
|
||||
glTexCoordPointer(2, GL_FLOAT, 0, gl->tex_coords);
|
||||
@ -235,7 +236,7 @@ void gl_render_msg_post(gl_t *gl)
|
||||
glBindTexture(GL_TEXTURE_2D, gl->texture[gl->tex_index]);
|
||||
|
||||
glDisable(GL_BLEND);
|
||||
gl_set_projection(gl, true);
|
||||
gl_set_projection(gl, &ortho, true);
|
||||
#else
|
||||
(void)gl;
|
||||
#endif
|
||||
|
2
gfx/gl.c
2
gfx/gl.c
@ -438,7 +438,7 @@ void gl_set_projection(gl_t *gl, ortho_t *ortho, bool allow_rotate)
|
||||
gl_shader_set_proj_matrix();
|
||||
}
|
||||
|
||||
static void gl_set_viewport(gl_t *gl, unsigned width, unsigned height, bool force_full, bool allow_rotate)
|
||||
void gl_set_viewport(gl_t *gl, unsigned width, unsigned height, bool force_full, bool allow_rotate)
|
||||
{
|
||||
unsigned vp_x_temp, vp_y_temp, vp_width_temp, vp_height_temp;
|
||||
ortho_t ortho;
|
||||
|
Loading…
Reference in New Issue
Block a user