projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2c65f4
)
fix comment and #if test
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 25 Aug 2005 22:09:43 +0000
(22:09 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 25 Aug 2005 22:09:43 +0000
(22:09 +0000)
progs/demos/readpix.c
patch
|
blob
|
history
diff --git
a/progs/demos/readpix.c
b/progs/demos/readpix.c
index c340e132bee9f3df00e19ef1d227d24ae4e45f81..75ba45c1e5f2eee5e587377c30b9adc2b7b1474e 100644
(file)
--- 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