Added checking for FXMESA_USE_ARGB to disable pixel reformatting when not appropriate
authorTed Jump <tjump@users.sourceforge.net>
Sat, 30 Oct 1999 18:34:48 +0000 (18:34 +0000)
committerTed Jump <tjump@users.sourceforge.net>
Sat, 30 Oct 1999 18:34:48 +0000 (18:34 +0000)
src/mesa/drivers/glide/fxwgl.c

index 7b19176c7efdaeb3ed01cf17d28a6904a66de1b4..c1db7b88bdc686113e4cbe1a7f52f2deb0ec1e69 100644 (file)
@@ -799,6 +799,7 @@ BOOL GLAPIENTRY wglSwapBuffers(HDC hdc)
      * display. Obviously, it's performance hit will be higher on larger displays and
      * less on smaller displays. To support the window-hack display this is probably fine.
      */
+#if  FXMESA_USE_ARGB
     {
       unsigned long *pixel = dibSurfacePtr;
       unsigned long count = (width * height) / 2;
@@ -811,7 +812,8 @@ BOOL GLAPIENTRY wglSwapBuffers(HDC hdc)
             ;
         }
     }
-
+#endif
+    
     BitBlt(hdcScreen, 0, 0,
            width, height,
            hdcDIBSection,