Remove ambiguous/useless code
authorPatrice Mandin <patmandin@gmail.com>
Mon, 22 Nov 2004 20:37:41 +0000
changeset 988 24b5c3ad4852
parent 987 d9f3b5bb7870
child 989 475166d13b44
Remove ambiguous/useless code
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; y<surface->h; y++) {
 		pixel = line;
 		for (x=0; x<surface->w; x++) {
-			*pixel++ = SDL_Swap16(*pixel);
+			unsigned short color = *pixel;
+
+			*pixel++ = SDL_Swap16(color);
 		}
 
 		line += pitch;