summaryrefslogtreecommitdiffstats
path: root/progs/demos/readpix.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/demos/readpix.c')
-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 c340e132bee..75ba45c1e5f 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