From e7e28151c1b0efd9966d67bd718a5642ab8593cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 12 Jan 2018 10:03:59 -0800 Subject: [PATCH] Cleanup. --- examples/29-debugdraw/debugdraw.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/29-debugdraw/debugdraw.cpp b/examples/29-debugdraw/debugdraw.cpp index 936118d03..b2b27d6fd 100644 --- a/examples/29-debugdraw/debugdraw.cpp +++ b/examples/29-debugdraw/debugdraw.cpp @@ -692,7 +692,9 @@ public: bx::mtxSRT(bunny, 0.03f, 0.03f, 0.03f, 0.0f, 0.0f, 0.0f, -3.0f, 0.0f, 0.0f); ddSetTransform(bunny); - ddSetWireframe(bx::fmod(time, 2.0f) > 1.0f); + const bool wireframe = bx::fmod(time, 2.0f) > 1.0f; + ddSetWireframe(wireframe); + ddSetColor(wireframe ? 0xffff00ff : 0xff00ff00); ddDraw(m_bunny); } ddPop();