fix bogus fb/drawable information
authorRoland Scheidegger <sroland@tungstengraphics.com>
Mon, 16 Jul 2007 16:21:36 +0000 (18:21 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Mon, 16 Jul 2007 16:23:47 +0000 (18:23 +0200)
commitcbfe29cdee5d338a25f13abbbb191b80428d05c8
tree32dc1d5f1c4a4a630c2e296987f8f855fa362c3d
parentfb3b9060d48934ca4faa72e966c00aee627ce96d
fix bogus fb/drawable information

the framebuffer objects attached to drawables can have invalidate state
associated with them, since for the window framebuffer this is per-context
state and not per-fbo state. Since drivers rely on that information
(otherwise would need to check if currently the window-framebuffer is
bound in a lot of places) fix it up in _mesa_make_current (ugly).
(Brought over from i915tex_privbuffers, where it fixes xdemos/wincopy
when switching to front buffer rendering.)
src/mesa/main/context.c