mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
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 <charmainel@vmware.com>
This commit is contained in:
parent
9405c1b3b0
commit
528bd94432
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue