From bf4ffe714fbbbc02ea81e2f3c48a1057419d23a5 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 8 Dec 2012 13:38:48 +0100 Subject: [PATCH] Clarify use of gl->conv_buffer. --- gfx/gl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index 2d5e4f5512..b9ddeda97e 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -997,10 +997,9 @@ static inline void gl_copy_frame(gl_t *gl, const void *frame, unsigned width, un } else // Slower path. { - const unsigned frame_bytes = width * height * gl->base_size; const unsigned line_bytes = width * gl->base_size; - uint8_t *dst = (uint8_t*)gl->conv_buffer; + uint8_t *dst = (uint8_t*)gl->conv_buffer; // This buffer is preallocated for this purpose. const uint8_t *src = (const uint8_t*)frame; for (unsigned h = 0; h < height; h++, src += pitch, dst += line_bytes)