summaryrefslogtreecommitdiff
path: root/tests/glx/glx-multithread.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-05-10 17:30:55 -0700
committerEric Anholt <eric@anholt.net>2013-06-17 14:31:18 -0700
commitb677a1042b7cbc4e5be01c7a9ff78fdc1b3dba0e (patch)
treee921927a13bc3454da45e0b8115f33fa39f7e0b0 /tests/glx/glx-multithread.c
parentb60dd3a48d0d746d99e802aacb231b3a45aa6807 (diff)
piglit: Make callers of piglit_dispatch_default_init() specify the API.
To automatically detect the current API, we'd need to make calls to piglit_is_gles() and piglit_get_gl_version(), while bypassing the dispatch mechanism we're trying to initialize. That seems tricky, while the context type is probably going to be known by the caller when we extend dispatch to GLES tests. Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'tests/glx/glx-multithread.c')
-rw-r--r--tests/glx/glx-multithread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/glx/glx-multithread.c b/tests/glx/glx-multithread.c
index 3d162b05f..f88f8da9b 100644
--- a/tests/glx/glx-multithread.c
+++ b/tests/glx/glx-multithread.c
@@ -79,7 +79,7 @@ draw(Display *dpy)
ctx = piglit_get_glx_context(dpy, visinfo);
glXMakeCurrent(dpy, win, ctx);
- piglit_dispatch_default_init();
+ piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);
/* Clear background to gray */
glClearColor(0.5, 0.5, 0.5, 1.0);