From 6f5b28cd604f4c401207fbbf142cbbc54107bb54 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 29 Nov 2013 03:06:04 +0100 Subject: [PATCH] (PS3) Get rid of warnings in gl.c --- gfx/gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index 8ca1aaf1cb..67e37df68a 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1192,8 +1192,6 @@ static void gl_init_textures(void *data, const video_info_t *video) static inline void gl_copy_frame(void *data, const void *frame, unsigned width, unsigned height, unsigned pitch) { - unsigned h; - (void)h; gl_t *gl = (gl_t*)data; #if defined(HAVE_OPENGLES2) #if defined(HAVE_EGL) @@ -1245,6 +1243,7 @@ static inline void gl_copy_frame(void *data, const void *frame, unsigned width, } else // Slower path. { + unsigned h; const unsigned line_bytes = width * gl->base_size; uint8_t *dst = (uint8_t*)gl->conv_buffer; // This buffer is preallocated for this purpose. @@ -1260,6 +1259,7 @@ static inline void gl_copy_frame(void *data, const void *frame, unsigned width, } } #elif defined(HAVE_PSGL) + unsigned h; 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;