mesa/light: make _mesa_light static do_light.

This is unused outside this now.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14074>
This commit is contained in:
Dave Airlie
2021-12-06 16:02:02 +10:00
parent 86bbd14b8e
commit d72c420f70
2 changed files with 4 additions and 8 deletions

View File

@@ -93,8 +93,8 @@ _mesa_ProvokingVertex(GLenum mode)
* will have already been transformed by the modelview matrix!
* Also, all error checking should have already been done.
*/
void
_mesa_light(struct gl_context *ctx, GLuint lnum, GLenum pname, const GLfloat *params)
static void
do_light(struct gl_context *ctx, GLuint lnum, GLenum pname, const GLfloat *params)
{
struct gl_light *light;
@@ -244,7 +244,7 @@ _mesa_light(struct gl_context *ctx, GLuint lnum, GLenum pname, const GLfloat *pa
break;
}
default:
unreachable("Unexpected pname in _mesa_light()");
unreachable("Unexpected pname in do_light()");
}
}
@@ -316,7 +316,7 @@ _mesa_Lightfv( GLenum light, GLenum pname, const GLfloat *params )
return;
}
_mesa_light(ctx, i, pname, params);
do_light(ctx, i, pname, params);
}

View File

@@ -82,10 +82,6 @@ extern void GLAPIENTRY
_mesa_GetMaterialiv( GLenum face, GLenum pname, GLint *params );
extern void
_mesa_light(struct gl_context *ctx, GLuint lnum, GLenum pname, const GLfloat *params);
extern GLuint _mesa_material_bitmask( struct gl_context *ctx,
GLenum face, GLenum pname,
GLuint legal,