rearrange a couple of lines of code to avoid compilation error in VC 6,
authorKarl Schultz <kschultz@freedesktop.org>
Fri, 17 Sep 2004 22:02:05 +0000 (22:02 +0000)
committerKarl Schultz <kschultz@freedesktop.org>
Fri, 17 Sep 2004 22:02:05 +0000 (22:02 +0000)
probably due to a compiler bug.

src/mesa/drivers/windows/gdi/wmesa.c

index 53d2022..ea13a31 100644 (file)
@@ -979,8 +979,8 @@ static void read_ci32_span( const GLcontext* ctx, GLuint n, GLint x, GLint y,
                             GLuint index[])
 {
   GLuint i;
-  (void) ctx;
   BYTE *Mem=Current->ScreenMem+FLIP(y)*Current->ScanWidth+x;
+  (void) ctx;
   assert(Current->rgb_flag==GL_FALSE);
   for (i=0; i<n; i++)
     index[i]=Mem[i];