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();