Mesa (main): mesa/light: make _mesa_light static do_light.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 6 06:50:58 UTC 2021


Module: Mesa
Branch: main
Commit: d72c420f70cbb02c0042a488e330c34f84170df1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d72c420f70cbb02c0042a488e330c34f84170df1

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Dec  6 16:02:02 2021 +1000

mesa/light: make _mesa_light static do_light.

This is unused outside this now.

Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14074>

---

 src/mesa/main/light.c | 8 ++++----
 src/mesa/main/light.h | 4 ----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 6d07b0fded1..03ec731fddd 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -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);
 }
 
 
diff --git a/src/mesa/main/light.h b/src/mesa/main/light.h
index 855389e1876..68e4f9b2fb4 100644
--- a/src/mesa/main/light.h
+++ b/src/mesa/main/light.h
@@ -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,



More information about the mesa-commit mailing list