Draw Manager: Fix crash when trying to order an empty shading group.

This fix crash when using only the volume output with an alpha blend material
This commit is contained in:
2017-11-01 00:57:25 +01:00
parent 0518577f5d
commit d836adb275

View File

@@ -1406,6 +1406,8 @@ static int pass_shgroup_dist_sort(void *thunk, const void *a, const void *b)
call_b = shgrp_b->calls.first;
#endif
if (call_a == NULL) return -1;
if (call_b == NULL) return -1;
float tmp[3];
sub_v3_v3v3(tmp, zsortdata->origin, call_a->obmat[3]);