summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-08-25 22:09:43 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-08-25 22:09:43 +0000
commit713635adef160b6dffaa929a00bfd72703f0b873 (patch)
tree22cf3233a89915cef396ade9f41466e452b7c1f8 /progs
parenta2c65f47930ab1c5a56a8c7c81b35dc77b08d472 (diff)
fix comment and #if test
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/readpix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/demos/readpix.c b/progs/demos/readpix.c
index c340e132be..75ba45c1e5 100644
--- a/progs/demos/readpix.c
+++ b/progs/demos/readpix.c
@@ -186,11 +186,12 @@ Display( void )
else {
/* clear the temporary image to white (helpful for debugging */
memset(TempImage, 255, ImgWidth * ImgHeight * 4);
-#if 0
- /* you might use this when debugging */
+#if 1
glReadPixels(APosX, APosY, ImgWidth, ImgHeight,
ReadFormat, ReadType, TempImage);
+ (void) ComplexReadPixels;
#else
+ /* you might use this when debugging */
ComplexReadPixels(APosX, APosY, ImgWidth, ImgHeight,
ReadFormat, ReadType, TempImage);
#endif