projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9405c1b
)
st/wgl: set PIPE_BIND_SAMPLER_VIEW for window color buffers
author
Brian Paul
<brianp@vmware.com>
Tue, 16 Jun 2015 21:32:46 +0000
(15:32 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 19 Jun 2015 14:45:00 +0000
(08:45 -0600)
To allow sampling from the surface for things like glCopyPixels
or glCopyTexSubImage.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/state_trackers/wgl/stw_st.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/wgl/stw_st.c
b/src/gallium/state_trackers/wgl/stw_st.c
index 6325ab1ce2993055b33e6351765f260ef1abc709..0a9116cbb7382c51c32b6a82cf9168436050ac73 100644
(file)
--- a/
src/gallium/state_trackers/wgl/stw_st.c
+++ b/
src/gallium/state_trackers/wgl/stw_st.c
@@
-96,6
+96,7
@@
stw_st_framebuffer_validate_locked(struct st_framebuffer_iface *stfb,
case ST_ATTACHMENT_BACK_LEFT:
format = stwfb->stvis.color_format;
bind = PIPE_BIND_DISPLAY_TARGET |
+ PIPE_BIND_SAMPLER_VIEW |
PIPE_BIND_RENDER_TARGET;
break;
case ST_ATTACHMENT_DEPTH_STENCIL: