summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2017-01-13 11:09:07 +0000
committerJose Fonseca <jfonseca@vmware.com>2017-01-13 11:09:07 +0000
commit0f6acafa0a18fa6ea9e7b1824592f4b9afed1311 (patch)
tree9e4a60fe3bf66095f112f8cba85a154d6a7b664f
parent185a36ae482c49411231a5d137884ea2eb1854d8 (diff)
downloadmesa-demos-0f6acafa0a18fa6ea9e7b1824592f4b9afed1311.tar.gz
test/drawstencil: Avoid unusued function warning.
Trivial
-rw-r--r--src/tests/drawstencil.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tests/drawstencil.c b/src/tests/drawstencil.c
index 0c369ed8..3c488cbc 100644
--- a/src/tests/drawstencil.c
+++ b/src/tests/drawstencil.c
@@ -115,13 +115,13 @@ Draw(void)
glClearColor(0.2, 0.2, 0.8, 0.0);
glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
-#if 0
- DrawStencilPixels(x0, y0, WIDTH, HEIGHT, (GLubyte*) Image);
-#else
- glWindowPos2i(x0, y0);
- glDrawPixels(WIDTH, HEIGHT, GL_STENCIL_INDEX,
- GL_UNSIGNED_BYTE, (GLubyte*) Image);
-#endif
+ if (0) {
+ DrawStencilPixels(x0, y0, WIDTH, HEIGHT, (GLubyte*) Image);
+ } else {
+ glWindowPos2i(x0, y0);
+ glDrawPixels(WIDTH, HEIGHT, GL_STENCIL_INDEX,
+ GL_UNSIGNED_BYTE, (GLubyte*) Image);
+ }
glReadPixels(x0, y0, WIDTH, HEIGHT, GL_STENCIL_INDEX, GL_UNSIGNED_BYTE, tmp);