Mesa (master): i965: Fix warnings in intel_pixel_read.c.

Eric Anholt anholt at kemper.freedesktop.org
Mon Jun 22 15:53:42 UTC 2009


Module: Mesa
Branch: master
Commit: c80ce5ac90b1e0ac7a72cd41c314aa2000bfecf5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c80ce5ac90b1e0ac7a72cd41c314aa2000bfecf5

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Jun 22 08:52:52 2009 -0700

i965: Fix warnings in intel_pixel_read.c.

---

 src/mesa/drivers/dri/intel/intel_pixel_read.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_pixel_read.c b/src/mesa/drivers/dri/intel/intel_pixel_read.c
index a7b7959..74da6d3 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_read.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_read.c
@@ -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)




More information about the mesa-commit mailing list