aboutsummaryrefslogtreecommitdiff
path: root/tests/glx
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2011-11-01 20:37:01 -0400
committerAdam Jackson <ajax@redhat.com>2011-11-01 20:37:01 -0400
commitdf4d5f142e707c845f1dddc30545e9f40f01d1c5 (patch)
treef5facda4d58dc9ca0c13e2b423af84883ac5d7e4 /tests/glx
parentd35c28cb2fadb7b4ad6cade2fe7760217247cab8 (diff)
glx-swap-pixmap: Fix test to do something legal
glXSwapBuffers() takes a GLXDrawable. Pixmaps are not GLXDrawables, although GLXPixmaps are. Fix the test to pass the GLXPixmap not the Pixmap. Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'tests/glx')
-rw-r--r--tests/glx/glx-swap-pixmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/glx/glx-swap-pixmap.c b/tests/glx/glx-swap-pixmap.c
index d3fb54c0..1c26a08f 100644
--- a/tests/glx/glx-swap-pixmap.c
+++ b/tests/glx/glx-swap-pixmap.c
@@ -71,7 +71,7 @@ main(int argc, char **argv)
glClear(GL_COLOR_BUFFER_BIT);
/* Noop */
- glXSwapBuffers(dpy, p);
+ glXSwapBuffers(dpy, g);
/* We want to actually catch any X error that leaks through as
* a result of glXSwapBuffers() before we go saying "pass" or