glsl/main: remove unused params and make function static
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
@@ -956,7 +956,7 @@ builtin_builder::create_shader()
|
||||
* GLSL utility code that could be linked against any stage, so just
|
||||
* arbitrarily pick GL_VERTEX_SHADER.
|
||||
*/
|
||||
shader = _mesa_new_shader(NULL, 0, MESA_SHADER_VERTEX);
|
||||
shader = _mesa_new_shader(0, MESA_SHADER_VERTEX);
|
||||
shader->symbols = new(mem_ctx) glsl_symbol_table;
|
||||
|
||||
gl_ModelViewProjectionMatrix =
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -42,7 +42,7 @@ _mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr,
|
||||
struct gl_shader *sh);
|
||||
|
||||
extern "C" 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);
|
||||
|
||||
extern "C" struct gl_linked_shader *
|
||||
_mesa_new_linked_shader(gl_shader_stage stage);
|
||||
|
||||
Reference in New Issue
Block a user