glamor: Don't forget to set GL_INVALIDATE_RANGE_BIT on GL_ARB_mbr.
We don't need any current contents of the buffer, and this allows an implementation to make a temporary BO for a streamed upload if it wants to. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Markus Wick <markus at selfnet.de>
This commit is contained in:
parent
25be6b3842
commit
bce5ec4f41
|
@ -731,7 +731,8 @@ glamor_setup_composite_vbo(ScreenPtr screen, int n_verts)
|
||||||
glamor_priv->vbo_offset,
|
glamor_priv->vbo_offset,
|
||||||
vert_size,
|
vert_size,
|
||||||
GL_MAP_WRITE_BIT |
|
GL_MAP_WRITE_BIT |
|
||||||
GL_MAP_UNSYNCHRONIZED_BIT);
|
GL_MAP_UNSYNCHRONIZED_BIT |
|
||||||
|
GL_MAP_INVALIDATE_RANGE_BIT);
|
||||||
assert(glamor_priv->vb != NULL);
|
assert(glamor_priv->vb != NULL);
|
||||||
glamor_priv->vb -= glamor_priv->vbo_offset;
|
glamor_priv->vb -= glamor_priv->vbo_offset;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user