mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 20:30:12 +01:00
st/dri: Clear drawable texture_mask in dri2_invalidate_drawable
This makes sure that dri_set_tex_buffer2 -> dri_drawable_validate_att will re-create the front left attachment buffer after the drawable got invalidated. Fixes window contents not updating until the window is resized when using DRI2 PRIME. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
a93bb2e33f
commit
9ee3f097b6
1 changed files with 1 additions and 0 deletions
|
|
@ -167,6 +167,7 @@ dri2_invalidate_drawable(__DRIdrawable *dPriv)
|
|||
|
||||
dri2InvalidateDrawable(dPriv);
|
||||
drawable->dPriv->lastStamp = drawable->dPriv->dri2.stamp;
|
||||
drawable->texture_mask = 0;
|
||||
|
||||
p_atomic_inc(&drawable->base.stamp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue