diff options
author | Adam Jackson <ajax@redhat.com> | 2011-11-01 20:37:01 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-11-01 20:37:01 -0400 |
commit | df4d5f142e707c845f1dddc30545e9f40f01d1c5 (patch) | |
tree | f5facda4d58dc9ca0c13e2b423af84883ac5d7e4 /tests/glx | |
parent | d35c28cb2fadb7b4ad6cade2fe7760217247cab8 (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.c | 2 |
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 |