mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
i915g: don't destroy a texture buffer if it's NULL.
This commit is contained in:
parent
1af8b7250f
commit
3103c08ae9
1 changed files with 2 additions and 1 deletions
|
|
@ -700,7 +700,8 @@ i915_texture_destroy(struct pipe_screen *screen,
|
|||
struct i915_winsys *iws = i915_screen(screen)->iws;
|
||||
uint i;
|
||||
|
||||
iws->buffer_destroy(iws, tex->buffer);
|
||||
if (tex->buffer)
|
||||
iws->buffer_destroy(iws, tex->buffer);
|
||||
|
||||
for (i = 0; i < Elements(tex->image_offset); i++)
|
||||
if (tex->image_offset[i])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue