From fd2b3da5c8cdbc5b00436185a3c03dfb7b7bd853 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 28 Jun 2016 09:41:59 +1000 Subject: glsl/main: remove unused params and make function static Reviewed-by: Iago Toral Quiroga --- src/compiler/glsl/standalone_scaffolding.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/compiler/glsl/standalone_scaffolding.cpp') diff --git a/src/compiler/glsl/standalone_scaffolding.cpp b/src/compiler/glsl/standalone_scaffolding.cpp index b5dc5231ee8..53729af3921 100644 --- a/src/compiler/glsl/standalone_scaffolding.cpp +++ b/src/compiler/glsl/standalone_scaffolding.cpp @@ -68,12 +68,10 @@ _mesa_shader_debug(struct gl_context *, GLenum, GLuint *, } struct gl_shader * -_mesa_new_shader(struct gl_context *ctx, GLuint name, gl_shader_stage stage) +_mesa_new_shader(GLuint name, gl_shader_stage stage) { struct gl_shader *shader; - (void) ctx; - assert(stage == MESA_SHADER_FRAGMENT || stage == MESA_SHADER_VERTEX); shader = rzalloc(NULL, struct gl_shader); if (shader) { -- cgit v1.2.3