mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 23:06:40 +00:00
Should fix error with scaling.
This commit is contained in:
parent
d05379b340
commit
844a523706
6
gfx/gl.c
6
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;
|
||||
|
Loading…
Reference in New Issue
Block a user