mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
gallium: flush pipe before updating bitmap texture
Fixes duplicated text bug in progs/tests/texwrap.c
This commit is contained in:
parent
0d80f407f1
commit
6fb4009226
1 changed files with 5 additions and 1 deletions
|
|
@ -589,6 +589,11 @@ st_flush_bitmap_cache(struct st_context *st)
|
|||
pipe_surface_unmap(surf);
|
||||
pipe_surface_reference(&surf, NULL);
|
||||
|
||||
/* flush in case the previous texture contents haven't been
|
||||
* used yet. XXX this is not ideal! Revisit.
|
||||
*/
|
||||
st->pipe->flush( st->pipe, 0x0, NULL );
|
||||
|
||||
pipe->texture_update(pipe, cache->texture, 0, 0x1);
|
||||
|
||||
draw_bitmap_quad(st->ctx,
|
||||
|
|
@ -597,7 +602,6 @@ st_flush_bitmap_cache(struct st_context *st)
|
|||
st->ctx->Current.RasterPos[2],
|
||||
BITMAP_CACHE_WIDTH, BITMAP_CACHE_HEIGHT,
|
||||
cache->texture);
|
||||
|
||||
}
|
||||
reset_cache(st);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue