From d7e5e77daac3535f3421f114b97d45a4cfc8fc3c Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 18 Nov 2012 22:20:00 +0100 Subject: [PATCH] Remove redundant call to gl_set_viewport. --- gfx/gl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index 7d846a24ae..dfb66a93d2 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -920,9 +920,6 @@ static void gl_init_textures_data(gl_t *gl) #if defined(HAVE_PSGL) static inline void gl_copy_frame(gl_t *gl, const void *frame, unsigned width, unsigned height, unsigned pitch) { - if (!gl->fbo_inited) - gl_set_viewport(gl, gl->win_width, gl->win_height, false, true); - size_t buffer_addr = gl->tex_w * gl->tex_h * gl->tex_index * gl->base_size; size_t buffer_stride = gl->tex_w * gl->base_size; const uint8_t *frame_copy = frame;