[Piglit] [PATCH 2/2] shader_runner: add casts to silence char** vs const GLchar** warnings

Brian Paul brianp at vmware.com
Thu Sep 20 07:53:35 PDT 2012


---
 tests/shaders/shader_runner.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 0aff387..1d6cfe0 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -137,12 +137,12 @@ compile_glsl(GLenum target, bool release_text)
 		shader_string_sizes[1] = shader_string_size;
 		
 		piglit_ShaderSource(shader, 2,
-				    shader_strings,
+				    (const GLchar **) shader_strings,
 				    shader_string_sizes);
 
 	} else {
 		piglit_ShaderSource(shader, 1,
-				    &shader_string,
+				    (const GLchar **) &shader_string,
 				    &shader_string_size);
 	}
 
-- 
1.7.3.4



More information about the Piglit mailing list