Should fix error with scaling.

This commit is contained in:
Themaister 2011-03-30 14:57:45 +02:00
parent d05379b340
commit 844a523706

View File

@ -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;