mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
gallium/radeon: remove redundant null-pointer check
v2: keep using r600_texture_reference Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
5b87eef031
commit
3a1da559c5
1 changed files with 1 additions and 2 deletions
|
|
@ -560,8 +560,7 @@ static void r600_texture_destroy(struct pipe_screen *screen,
|
|||
struct r600_texture *rtex = (struct r600_texture*)ptex;
|
||||
struct r600_resource *resource = &rtex->resource;
|
||||
|
||||
if (rtex->flushed_depth_texture)
|
||||
r600_texture_reference(&rtex->flushed_depth_texture, NULL);
|
||||
r600_texture_reference(&rtex->flushed_depth_texture, NULL);
|
||||
|
||||
r600_resource_reference(&rtex->htile_buffer, NULL);
|
||||
if (rtex->cmask_buffer != &rtex->resource) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue