mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +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
|
#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);
|
glMatrixMode(GL_PROJECTION);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
@ -227,6 +227,7 @@ extern const GLfloat white_color[];
|
|||||||
|
|
||||||
void gl_render_msg_post(gl_t *gl)
|
void gl_render_msg_post(gl_t *gl)
|
||||||
{
|
{
|
||||||
|
ortho_t ortho = {0}; //dummy - no overscan on PC
|
||||||
#ifdef HAVE_FREETYPE
|
#ifdef HAVE_FREETYPE
|
||||||
// Go back to old rendering path.
|
// Go back to old rendering path.
|
||||||
glTexCoordPointer(2, GL_FLOAT, 0, gl->tex_coords);
|
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]);
|
glBindTexture(GL_TEXTURE_2D, gl->texture[gl->tex_index]);
|
||||||
|
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
gl_set_projection(gl, true);
|
gl_set_projection(gl, &ortho, true);
|
||||||
#else
|
#else
|
||||||
(void)gl;
|
(void)gl;
|
||||||
#endif
|
#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();
|
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;
|
unsigned vp_x_temp, vp_y_temp, vp_width_temp, vp_height_temp;
|
||||||
ortho_t ortho;
|
ortho_t ortho;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user