[Piglit] [PATCH 1/3] piglit: add const qualifier for filename param for piglit_compile_shader()
Brian Paul
brianp at vmware.com
Wed Oct 3 07:27:38 PDT 2012
---
tests/util/piglit-shader.c | 2 +-
tests/util/piglit-shader.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/util/piglit-shader.c b/tests/util/piglit-shader.c
index f097512..d04247d 100644
--- a/tests/util/piglit-shader.c
+++ b/tests/util/piglit-shader.c
@@ -63,7 +63,7 @@ void piglit_get_glsl_version(bool *es, int* major, int* minor)
* Convenience function to compile a GLSL shader from a file.
*/
GLuint
-piglit_compile_shader(GLenum target, char *filename)
+piglit_compile_shader(GLenum target, const char *filename)
{
GLuint prog;
struct stat st;
diff --git a/tests/util/piglit-shader.h b/tests/util/piglit-shader.h
index 64e6623..74396ef 100644
--- a/tests/util/piglit-shader.h
+++ b/tests/util/piglit-shader.h
@@ -30,7 +30,7 @@
*/
void piglit_get_glsl_version(bool *es, int* major, int* minor);
-GLuint piglit_compile_shader(GLenum target, char *filename);
+GLuint piglit_compile_shader(GLenum target, const char *filename);
GLuint piglit_compile_shader_text(GLenum target, const char *text);
GLboolean piglit_link_check_status(GLint prog);
GLboolean piglit_link_check_status_quiet(GLint prog);
--
1.7.3.4
More information about the Piglit
mailing list