diff src/video/gem/SDL_gemvideo.c @ 988:24b5c3ad4852

Remove ambiguous/useless code
author Patrice Mandin <patmandin@gmail.com>
date Mon, 22 Nov 2004 20:37:41 +0000
parents 952ec1ddcb58
children 475166d13b44
line wrap: on
line diff
--- 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;