From 02913851da39f0923eb4fe3c740931efea310c96 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 16 Mar 2015 16:28:30 +0100 Subject: [PATCH] (GL) Rearrange some variables --- gfx/drivers/gl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index 726a6b2d88..3f61e2764b 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -2768,15 +2768,15 @@ static bool gl_read_viewport(void *data, uint8_t *buffer) static void* gl_read_frame_raw(void *data, unsigned *width_p, unsigned *height_p, size_t *pitch_p) { -#ifdef HAVE_FBO - void* buffer = NULL; -#endif - void* buffer_texture = NULL; int i; gl_t *gl = (gl_t*)data; unsigned width = gl->last_width[gl->tex_index]; unsigned height = gl->last_height[gl->tex_index]; size_t pitch = gl->tex_w * gl->base_size; +#ifdef HAVE_FBO + void* buffer = NULL; +#endif + void* buffer_texture = NULL; #ifdef HAVE_FBO if (gl->hw_render_use)