Skip to content
Snippets Groups Projects
Commit d8f65c07 authored by Brian Paul's avatar Brian Paul
Browse files

intel: add null src pointer check in intel_region_reference()


Fixes segfault when running cubemap demo on i945.  This happened
when intel_region_reference() was called in i915_set_draw_region()
with depth_region=NULL.

Reviewed-by: default avatarEric Anholt <eric@anholt.net>
parent 7eb7d67d
No related branches found
No related tags found
No related merge requests found
......@@ -271,7 +271,8 @@ intel_region_reference(struct intel_region **dst, struct intel_region *src)
if (*dst)
intel_region_release(dst);
src->refcount++;
if (src)
src->refcount++;
*dst = src;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment