fix mesa fb binding
authorRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 17 Jul 2007 15:29:55 +0000 (17:29 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 17 Jul 2007 15:29:55 +0000 (17:29 +0200)
commitd9499a151df85fef6bb6f31b58657e44cadba50a
tree3e8f88219f15959c350f9a460f0bb63c2b5b5810
parent04d49ff24d0f9c7c3a99c45b50f62aa32b0a28ed
fix mesa fb binding

Make sure that we bind the right buffer (draw or read) when rebinding
the window framebuffer (the api doesn't allow binding different draw and
read buffers at the same time, but the default window framebuffer is basically
2 fb objects, one for read, one for write, which can be different). Pass both
of these two down the driver api (no driver uses this right now).
src/mesa/drivers/dri/i915tex/intel_fbo.c
src/mesa/drivers/dri/nouveau/nouveau_buffers.c
src/mesa/main/dd.h
src/mesa/main/fbobject.c