diff options
author | Laura Ekstrand <[email protected]> | 2015-02-03 11:03:01 -0800 |
---|---|---|
committer | Fredrik Höglund <[email protected]> | 2015-05-14 15:48:14 +0200 |
commit | 9036a6c0aa0637a1cd756836006dc8565b15a478 (patch) | |
tree | 366d9034f7ec308924c85960571a95ddbca01339 /src/mesa/main/state.c | |
parent | 1a314f3c51bf1884cc3bf880e32461f304d5030b (diff) |
main: Refactor _mesa_update_framebuffer.
_mesa_update_framebuffer now operates on arbitrary read and draw framebuffers.
This allows BlitNamedFramebuffer to update the state of its arbitrary read and
draw framebuffers.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 99db37bafd7..3688736cb79 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -389,7 +389,7 @@ _mesa_update_state_locked( struct gl_context *ctx ) update_frontbit( ctx ); if (new_state & _NEW_BUFFERS) - _mesa_update_framebuffer(ctx); + _mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer); if (new_state & (_NEW_SCISSOR | _NEW_BUFFERS | _NEW_VIEWPORT)) _mesa_update_draw_buffer_bounds( ctx ); |