summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorLaura Ekstrand <[email protected]>2015-02-03 14:41:26 -0800
committerFredrik Höglund <[email protected]>2015-05-14 15:48:14 +0200
commitb590c617256720e82fff0428a5e0e4a64115fac2 (patch)
tree5a04eadcab24543a552fb4f3efb70ab30a695ceb /src/mesa/main/state.c
parent39be0c5f6c1922e2e2f3c4243dd8257c2e7deef8 (diff)
main: Refactor _mesa_update_draw_buffer_bounds.
Reviewed-by: Fredrik Höglund <[email protected]> Signed-off-by: Fredrik Höglund <[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 3688736cb79..2657c532f88 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -392,7 +392,7 @@ _mesa_update_state_locked( struct gl_context *ctx )
_mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer);
if (new_state & (_NEW_SCISSOR | _NEW_BUFFERS | _NEW_VIEWPORT))
- _mesa_update_draw_buffer_bounds( ctx );
+ _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer);
if (new_state & _NEW_LIGHT)
_mesa_update_lighting( ctx );