From 844a5237061669f60bef2595e313cdaf63064ec9 Mon Sep 17 00:00:00 2001 From: Themaister Date: Wed, 30 Mar 2011 14:57:45 +0200 Subject: [PATCH] Should fix error with scaling. --- gfx/gl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index d574333623..47f4e825e9 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -953,13 +953,13 @@ static void* gl_init(video_info_t *video, const input_driver_t **input, void **i // Set up render to texture. gl_init_fbo(gl, 256 * video->input_scale, 256 * video->input_scale); + gl->vsync = video->vsync; + gl->keep_aspect = video->force_aspect; + // Apparently need to set viewport for passes when we aren't using FBOs. gl_shader_use(1); set_viewport(gl, gl->win_width, gl->win_height, false); - gl->vsync = video->vsync; - gl->keep_aspect = video->force_aspect; - bool force_smooth; if (gl_shader_filter_type(1, &force_smooth)) gl->tex_filter = force_smooth ? GL_LINEAR : GL_NEAREST;