[Piglit] [PATCH 1/6] util/gl: don't call piglit_dispatch_default_init in piglit_use_*_program
Emil Velikov
emil.l.velikov at gmail.com
Mon Jun 27 16:58:00 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
piglit_use_vertex_program/piglit_use_fragment_program are used _after_
piglit_init() at which point the winsys layer is already up and the
dispatch is already setup.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
tests/util/piglit-util-gl.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c
index 727a901..39ca789 100644
--- a/tests/util/piglit-util-gl.c
+++ b/tests/util/piglit-util-gl.c
@@ -2138,7 +2138,6 @@ bool piglit_probe_buffer_doubles(GLuint buf, GLenum target, const char *label,
int piglit_use_fragment_program(void)
{
- piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);
return piglit_is_extension_supported("GL_ARB_fragment_program");
}
@@ -2152,7 +2151,6 @@ void piglit_require_fragment_program(void)
int piglit_use_vertex_program(void)
{
- piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);
return piglit_is_extension_supported("GL_ARB_vertex_program");
}
--
2.8.2
More information about the Piglit
mailing list