diff options
author | Paul Berry <stereotype441@gmail.com> | 2012-02-29 12:43:22 -0800 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2012-03-23 13:36:34 -0700 |
commit | 1b82b35cd4ef5efdf49d7d1c8c246a1605a3c731 (patch) | |
tree | 6487599bc99604af6413fecf3c57ef8d36187103 /tests/glx/glx-multithread.c | |
parent | b1fb8fae2d72fca33699b0b225c26651494b4559 (diff) |
Add glewInit() calls to glx tests.
Previously these tests didn't initialize GLEW, presumably because they
only use (a) GL 1.0 functions, which bypass GLEW, and (b) GLX
functions, which they bind to using glXGetProcAddressARB(). Once we
switch to using piglit-dispatch instead of GLEW, we will need to
initialize it in order for the GL 1.0 functions to work. This patch
adds a call to glewInit() in the place where a call to
piglit_dispatch_default_init() will eventually be needed.
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'tests/glx/glx-multithread.c')
-rw-r--r-- | tests/glx/glx-multithread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/glx/glx-multithread.c b/tests/glx/glx-multithread.c index d01c8e93b..ee522d831 100644 --- a/tests/glx/glx-multithread.c +++ b/tests/glx/glx-multithread.c @@ -79,6 +79,7 @@ draw(Display *dpy) ctx = piglit_get_glx_context(dpy, visinfo); glXMakeCurrent(dpy, win, ctx); + glewInit(); /* Clear background to gray */ glClearColor(0.5, 0.5, 0.5, 1.0); |