From 2c7a1e57551e4afee2d087cff0f82469ff431673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 20 Nov 2017 21:43:00 -0800 Subject: [PATCH] Cleanup. --- examples/common/debugdraw/debugdraw.cpp | 14 ++------------ examples/common/debugdraw/debugdraw.h | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/examples/common/debugdraw/debugdraw.cpp b/examples/common/debugdraw/debugdraw.cpp index 92ddee58f..3418dd96f 100644 --- a/examples/common/debugdraw/debugdraw.cpp +++ b/examples/common/debugdraw/debugdraw.cpp @@ -2237,19 +2237,9 @@ void ddDrawCone(const void* _from, const void* _to, float _radius) s_dd.drawCone(_from, _to, _radius); } -void ddDrawCylinder(const void* _from, const void* _to, float _radius, bool _capsule) +void ddDrawCylinder(const void* _from, const void* _to, float _radius) { - if (_capsule) - { - s_dd.push(); - s_dd.setLod(0); - s_dd.drawCylinder(_from, _to, _radius, true); - s_dd.pop(); - } - else - { - s_dd.drawCylinder(_from, _to, _radius, false); - } + s_dd.drawCylinder(_from, _to, _radius, false); } void ddDrawCapsule(const void* _from, const void* _to, float _radius) diff --git a/examples/common/debugdraw/debugdraw.h b/examples/common/debugdraw/debugdraw.h index f43d0a6e7..a52da4fbd 100644 --- a/examples/common/debugdraw/debugdraw.h +++ b/examples/common/debugdraw/debugdraw.h @@ -134,7 +134,7 @@ void ddDrawQuad(bgfx::TextureHandle _handle, const float* _normal, const float* void ddDrawCone(const void* _from, const void* _to, float _radius); /// -void ddDrawCylinder(const void* _from, const void* _to, float _radius, bool _capsule = false); +void ddDrawCylinder(const void* _from, const void* _to, float _radius); /// void ddDrawCapsule(const void* _from, const void* _to, float _radius);