mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -04:00
Saturn: Fix frustum culling not working
This commit is contained in:
parent
9667313919
commit
67d5e8dc16
@ -204,6 +204,11 @@ cc_bool FrustumCulling_SphereInFrustum(float x, float y, float z, float radius)
|
|||||||
d = frustumF.a * x + frustumF.b * y + frustumF.c * z + frustumF.d;
|
d = frustumF.a * x + frustumF.b * y + frustumF.c * z + frustumF.d;
|
||||||
if (d <= -radius) return false;
|
if (d <= -radius) return false;
|
||||||
/* Don't test NEAR plane, it's pointless */
|
/* Don't test NEAR plane, it's pointless */
|
||||||
|
|
||||||
|
#ifdef CC_BUILD_SATURN
|
||||||
|
/* Workaround a compiler bug causing the below statement to return 0 instead */
|
||||||
|
__asm__( "!" );
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user