i965: Fix warnings in intel_pixel_read.c.
authorEric Anholt <eric@anholt.net>
Mon, 22 Jun 2009 15:52:52 +0000 (08:52 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 22 Jun 2009 15:52:52 +0000 (08:52 -0700)
src/mesa/drivers/dri/intel/intel_pixel_read.c

index a7b79592758581acf73d26be8bbdd457e19146b2..74da6d39a2fa6d3e2cf120ea6c470898e5e047ce 100644 (file)
@@ -31,6 +31,7 @@
 #include "main/macros.h"
 #include "main/image.h"
 #include "main/bufferobj.h"
+#include "main/state.h"
 #include "swrast/swrast.h"
 
 #include "intel_screen.h"
@@ -299,6 +300,9 @@ intelReadPixels(GLcontext * ctx,
    if (do_texture_readpixels
        (ctx, x, y, width, height, format, type, pack, pixels))
       return;
+#else
+   (void)do_blit_readpixels;
+   (void)do_texture_readpixels;
 #endif
 
    if (INTEL_DEBUG & DEBUG_PIXEL)