Various fixes to allow compiling negine with custom build configurations

This commit is contained in:
Wojtek Figat
2022-07-26 23:06:03 +02:00
parent 8beb732cb9
commit ff1fba403d
18 changed files with 41 additions and 39 deletions

View File

@@ -92,9 +92,9 @@ void SplineCollider::DrawPhysicsDebug(RenderView& view)
if (!view.CullingFrustum.Intersects(sphere))
return;
if (view.Mode == ViewMode::PhysicsColliders && !GetIsTrigger())
DebugDraw::DrawTriangles(_vertexBuffer, _indexBuffer, Color::CornflowerBlue, 0, true);
DEBUG_DRAW_WIRE_TRIANGLES_EX(_vertexBuffer, _indexBuffer, Color::CornflowerBlue, 0, true);
else
DebugDraw::DrawWireTriangles(_vertexBuffer, _indexBuffer, Color::GreenYellow * 0.8f, 0, true);
DEBUG_DRAW_WIRE_TRIANGLES_EX(_vertexBuffer, _indexBuffer, Color::GreenYellow * 0.8f, 0, true);
}
void SplineCollider::OnDebugDrawSelected()