From b3d971f4902c1975374414ed017f1798d0763b6d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 2 Mar 2013 14:35:27 +0100 Subject: [PATCH] (PS3) Clean up unneeded code in gl_copy_frame --- gfx/gl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index 9a0bc92e53..4a7ff4d0f8 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1046,9 +1046,6 @@ static inline void gl_copy_frame(void *data, const void *frame, unsigned width, { gl_t *gl = (gl_t*)data; - 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;