Fix wined3d compilation.

Adam D. Moss adam at gimp.org
Mon Nov 29 14:18:10 CST 2004


C doesn't usually like mixed declarations and code.
--Adam
-------------- next part --------------
? kernel/nls/L
Index: wined3d/device.c
===================================================================
RCS file: /home/wine/wine/dlls/wined3d/device.c,v
retrieving revision 1.8
diff -u -u -r1.8 device.c
--- wined3d/device.c	29 Nov 2004 17:53:42 -0000	1.8
+++ wined3d/device.c	29 Nov 2004 21:11:04 -0000
@@ -360,9 +360,9 @@
          * NOTE2: Apparently texture transforms do NOT need reapplying
          */
         
+        PLIGHTINFOEL *lightChain = NULL;
         This->modelview_valid = FALSE;
         This->view_ident = !memcmp(lpmatrix, identity, 16*sizeof(float));
-        PLIGHTINFOEL *lightChain = NULL;
 
         glMatrixMode(GL_MODELVIEW);
         checkGLcall("glMatrixMode(GL_MODELVIEW)");


More information about the wine-patches mailing list