projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9543b0a
)
st/mesa: set strb->format field in st_render_texture()
author
Brian Paul
<brianp@vmware.com>
Wed, 10 Mar 2010 17:50:17 +0000
(10:50 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 10 Mar 2010 17:50:19 +0000
(10:50 -0700)
This fixes a problem in glReadPixels when reading from an FBO's texture
attachment. We have a better chance at hitting a fast path for
glReadPixels now.
src/mesa/state_tracker/st_cb_fbo.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_fbo.c
b/src/mesa/state_tracker/st_cb_fbo.c
index 00e9d1dccbdcb63b3e4c06864fc174d15230549e..abf0c8d6cb1d0bc3549486087e1305c2899482ff 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_fbo.c
+++ b/
src/mesa/state_tracker/st_cb_fbo.c
@@
-379,6
+379,8
@@
st_render_texture(GLcontext *ctx,
PIPE_BUFFER_USAGE_GPU_READ |
PIPE_BUFFER_USAGE_GPU_WRITE);
+ strb->format = pt->format;
+
strb->Base.Format = st_pipe_format_to_mesa_format(pt->format);
strb->Base.DataType = st_format_datatype(pt->format);