st/mesa: flush the glBitmap cache before changing framebuffer state
authorMarek Olšák <maraeo@gmail.com>
Sun, 22 Jul 2012 02:31:59 +0000 (04:31 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 23 Jul 2012 17:23:53 +0000 (19:23 +0200)
commit162b3ad94d52b28d83462202952987012387e12f
treec75bbb96b10807a632e9749fe21ca9104412745b
parent07b9b3c37b33e4994ff71930aed77821e758f0c9
st/mesa: flush the glBitmap cache before changing framebuffer state

This fixes the piglit EXT_framebuffer_multisample/bitmap tests.

Note that we must not rely on ctx->DrawBuffer when flushing the cache, because
that's already updated with a new framebuffer. We want to draw into the old
framebuffer where glBitmap was called.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_framebuffer.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_context.h