summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/buffers.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2007-07-18 18:07:12 +0200
committerRoland Scheidegger <[email protected]>2007-07-19 17:59:31 +0200
commit6075df53b5435ddada989d776d989132def363a6 (patch)
tree61bb3521d9677d6b387e3ecfdb9465242466ecd9 /src/mesa/main/buffers.c
parentf9ac01eac511aa9ea0b8b48774022a08d0fc2f3b (diff)
more fixes for mesa's fbo handling (fixes tests/fbotest1/2)
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r--src/mesa/main/buffers.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c
index c280f89e1d1..68a0575d93d 100644
--- a/src/mesa/main/buffers.c
+++ b/src/mesa/main/buffers.c
@@ -557,9 +557,8 @@ _mesa_ReadBuffer(GLenum buffer)
}
}
- if (fb->Name == 0) {
- ctx->Pixel.ReadBuffer = buffer;
- }
+ ctx->Pixel.ReadBuffer = buffer;
+
fb->ColorReadBuffer = buffer;
fb->_ColorReadBufferIndex = srcBuffer;