summaryrefslogtreecommitdiff
path: root/tests/util/piglit-framework-gl/piglit_glut_framework.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/util/piglit-framework-gl/piglit_glut_framework.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/util/piglit-framework-gl/piglit_glut_framework.c')
-rw-r--r--tests/util/piglit-framework-gl/piglit_glut_framework.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/util/piglit-framework-gl/piglit_glut_framework.c b/tests/util/piglit-framework-gl/piglit_glut_framework.c
index ff48abbbc..a28a17703 100644
--- a/tests/util/piglit-framework-gl/piglit_glut_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_glut_framework.c
@@ -126,7 +126,7 @@ init_glut(void)
glutKeyboardFunc(piglit_escape_exit_key);
#ifdef PIGLIT_USE_OPENGL
- piglit_dispatch_default_init();
+ piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);
#endif
}