ports/graphics/urho3d/files/patch-Source_ThirdParty_StanHull_hull.cpp
Romain Tartière 773e684f1f New port: graphics/urho3d
Urho3D is a free lightweight, cross-platform 2D and 3D game engine implemented
in C++ and released under the MIT license. Greatly inspired by OGRE and
Horde3D.

WWW: https://urho3d.github.io/
2019-12-04 02:21:29 +00:00

11 lines
480 B
C++

--- Source/ThirdParty/StanHull/hull.cpp.orig 2019-05-24 15:51:45 UTC
+++ Source/ThirdParty/StanHull/hull.cpp
@@ -2587,7 +2587,7 @@ int overhull(Plane *planes,int planes_count,float3 *ve
float3 *&verts_out, int &verts_count_out, int *&faces_out, int &faces_count_out ,float inflate)
{
int i,j;
- if(verts_count <4) return NULL;
+ if(verts_count <4) return 0;
maxplanes = Min(maxplanes,planes_count);
float3 bmin(verts[0]),bmax(verts[0]);
for(i=0;i<verts_count;i++)