Fix segfault with static surfaces

This commit is contained in:
jaburns
2020-10-25 16:43:38 -06:00
parent 5f59e1a178
commit fac3ef5f8b
+4
View File
@@ -127,6 +127,10 @@ static void engine_surface_from_lib_surface( struct Surface *surface, const stru
surface->object = (struct Object *)(transform); surface->object = (struct Object *)(transform);
} }
else
{
surface->object = NULL;
}
// (v2 - v1) x (v3 - v2) // (v2 - v1) x (v3 - v2)
nx = (y2 - y1) * (z3 - z2) - (z2 - z1) * (y3 - y2); nx = (y2 - y1) * (z3 - z2) - (z2 - z1) * (y3 - y2);