# HG changeset patch # User Patrice Mandin # Date 1101155861 0 # Node ID 24b5c3ad485200bcc235ec8f13e788af268f4918 # Parent d9f3b5bb7870bc8ab3ecc1737135f7cd4e397e0e Remove ambiguous/useless code diff -r d9f3b5bb7870 -r 24b5c3ad4852 src/video/gem/SDL_gemvideo.c --- a/src/video/gem/SDL_gemvideo.c Mon Nov 22 20:36:59 2004 +0000 +++ b/src/video/gem/SDL_gemvideo.c Mon Nov 22 20:37:41 2004 +0000 @@ -760,7 +760,6 @@ #ifdef HAVE_OPENGL if (flags & SDL_OPENGL) { - int conversion_needed = 0; GLenum format = OSMESA_COLOR_INDEX; /* 8 bits */ /* Init OpenGL context using OSMesa */ @@ -1513,7 +1512,9 @@ for (y=0; yh; y++) { pixel = line; for (x=0; xw; x++) { - *pixel++ = SDL_Swap16(*pixel); + unsigned short color = *pixel; + + *pixel++ = SDL_Swap16(color); } line += pitch;