summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-08-09 22:32:46 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-08-11 16:03:12 +0200
commit86ba7119e0d6c0d1557808b6b4b13e5508cf4778 (patch)
tree158819076e663c0e93e5b82a5e28f1f4ab4b8bc2
parent1ff76fbeb50cfff8a4a8db215f410f8427a4c639 (diff)
st/mesa: Remove draw/read buffer update in st_api_make_currentegl-pixmap-render-fix
The buffers are copied from the drawables to the context in _mesa_make_current with previous commit. The same values assigned here are asigned to the copied drawable buffers in st_framebuffer_create.
-rw-r--r--src/mesa/state_tracker/st_manager.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index d5228d387f..46a60eed81 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -776,16 +776,6 @@ st_api_make_current(struct st_api *stapi, struct st_context_iface *stctxi,
if (stread != stdraw)
st_framebuffer_validate(stread, st);
- /* modify the draw/read buffers of the context */
- if (stdraw->iface) {
- st_visual_to_default_buffer(stdraw->iface->visual,
- &st->ctx->Color.DrawBuffer[0], NULL);
- }
- if (stread->iface) {
- st_visual_to_default_buffer(stread->iface->visual,
- &st->ctx->Pixel.ReadBuffer, NULL);
- }
-
ret = _mesa_make_current(st->ctx, &stdraw->Base, &stread->Base);
st->draw_stamp = stdraw->stamp - 1;