mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
svga: Remove duplicate code.
This commit is contained in:
parent
50edefec2d
commit
31e49dc54e
1 changed files with 2 additions and 4 deletions
|
|
@ -496,10 +496,8 @@ svga_buffer_destroy( struct pipe_buffer *buf )
|
|||
|
||||
assert(!sbuf->needs_flush);
|
||||
|
||||
if(sbuf->handle) {
|
||||
SVGA_DBG(DEBUG_DMA, "release sid %p sz %d\n", sbuf->handle, sbuf->base.size);
|
||||
svga_screen_surface_destroy(ss, &sbuf->key, &sbuf->handle);
|
||||
}
|
||||
if(sbuf->handle)
|
||||
svga_buffer_destroy_host_surface(ss, sbuf);
|
||||
|
||||
if(sbuf->hw.buf)
|
||||
svga_buffer_destroy_hw_storage(ss, sbuf);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue