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>
Thu, 19 Jul 2007 15:47:14 +0000 (17:47 +0200)
commitdbfb375805d94cb80262b8816c67a8adc778bec5
treed3ca1413fde3fc7df597cbbfe5b7564cc2a95dfc
parentb9f2cf9a4e0a5ec89b27371210846942c93cb412
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