aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-06 22:58:12 +0200
committerSamuel Pitoiset <[email protected]>2017-06-07 09:05:25 +0200
commit51854def8a31f5d23fa98aeafbd5acc72e08b3a4 (patch)
treeef535f6a3a22c9eb21166431b6a3a59a95b9ddfb /src/mesa/main/state.c
parentf7741985be0234c3fe71e1f97740579e35726b92 (diff)
mesa: remove useless check in _mesa_update_pixel()
The only caller is _mesa_update_state_locked() which already checks if _NEW_PIXEL is set before calling _mesa_update_pixel(). Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 73872b822a6..d534f554bad 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -382,7 +382,7 @@ _mesa_update_state_locked( struct gl_context *ctx )
_mesa_update_stencil( ctx );
if (new_state & _NEW_PIXEL)
- _mesa_update_pixel( ctx, new_state );
+ _mesa_update_pixel( ctx );
/* ctx->_NeedEyeCoords is now up to date.
*