summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstate.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-03-23 22:35:03 +0100
committerMarek Olšák <[email protected]>2017-03-29 15:44:00 +0200
commit226ff6aa30701fb1b4e69e07c5d76c4d9b5e5d77 (patch)
tree9766f6b712a0144ebb9a43a2c05df8085bf0ee57 /src/mesa/main/texstate.c
parentbb9faba172193a33a20a86d0b1a3a4db6fabcaa0 (diff)
mesa: inline _mesa_update_texture
Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r--src/mesa/main/texstate.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index be73fc33db6..70e014cab63 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -355,8 +355,8 @@ _mesa_ClientActiveTexture(GLenum texture)
*
* \param ctx GL context.
*/
-static void
-update_texture_matrices( struct gl_context *ctx )
+void
+_mesa_update_texture_matrices(struct gl_context *ctx)
{
GLuint u;
@@ -691,8 +691,8 @@ update_ff_texture_state(struct gl_context *ctx,
*
* \param ctx GL context.
*/
-static void
-update_texture_state( struct gl_context *ctx )
+void
+_mesa_update_texture_state(struct gl_context *ctx)
{
struct gl_program *prog[MESA_SHADER_STAGES];
int i;
@@ -747,20 +747,6 @@ update_texture_state( struct gl_context *ctx )
}
-/**
- * Update texture-related derived state.
- */
-void
-_mesa_update_texture( struct gl_context *ctx, GLuint new_state )
-{
- if (new_state & _NEW_TEXTURE_MATRIX)
- update_texture_matrices( ctx );
-
- if (new_state & (_NEW_TEXTURE | _NEW_PROGRAM))
- update_texture_state( ctx );
-}
-
-
/**********************************************************************/
/***** Initialization *****/
/**********************************************************************/