Commit 51bdaf0b authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer
Browse files

st/mesa: set compressed_data to NULL when freed

Reported-by: Karol Herbst's avatarKarol Herbst <>
Fixes: b6db703e

 ("st/mesa: make texture views inherit compressed_data storage")
Reviewed-by: Karol Herbst's avatarKarol Herbst <>
Tested-by: default avatarDave Airlie <>
Part-of: <mesa/mesa!5821>
parent ca51f75f
......@@ -235,6 +235,7 @@ st_FreeTextureImageBuffer(struct gl_context *ctx,
pipe_reference(&stImage->compressed_data->reference, NULL)) {
stImage->compressed_data = NULL;
/* if the texture image is being deallocated, the structure of the
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment