From: Brian Paul Date: Tue, 16 Jun 2015 21:32:46 +0000 (-0600) Subject: st/wgl: set PIPE_BIND_SAMPLER_VIEW for window color buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=528bd94432b20becc1f436da75f7a102416dabeb;p=mesa.git st/wgl: set PIPE_BIND_SAMPLER_VIEW for window color buffers To allow sampling from the surface for things like glCopyPixels or glCopyTexSubImage. Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/state_trackers/wgl/stw_st.c b/src/gallium/state_trackers/wgl/stw_st.c index 6325ab1ce29..0a9116cbb73 100644 --- 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: