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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user