From 6b7739660cde16d06c49fdd2eb0e1d6b6e6dd081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 5 Mar 2015 09:19:33 -0800 Subject: [PATCH] Removed useless code from example. --- examples/23-vectordisplay/vectordisplay.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/examples/23-vectordisplay/vectordisplay.cpp b/examples/23-vectordisplay/vectordisplay.cpp index 1c094cf4..41ecbd7f 100644 --- a/examples/23-vectordisplay/vectordisplay.cpp +++ b/examples/23-vectordisplay/vectordisplay.cpp @@ -152,9 +152,6 @@ void VectorDisplay::beginFrame() void VectorDisplay::endFrame() { float proj[16]; - float ident[16]; - bx::mtxIdentity(ident); - bx::mtxOrtho(proj, 0.0f, (float)m_screenWidth, (float)m_screenHeight, 0.0f, 0.0f, 1000.0f); bgfx::setViewRect(m_view, 0, 0, m_screenWidth, m_screenHeight); @@ -171,14 +168,6 @@ void VectorDisplay::endFrame() ); m_vertexBuffersSize[m_currentDrawStep] = (uint32_t)m_points.size(); - //if the index buffer is cleared from the last "submit"-call everything is fine, but if not - //we clear it here again just to be sure it's not set... (the same for the Transform) - bgfx::IndexBufferHandle ib; - ib.idx = bgfx::invalidHandle; - bgfx::setIndexBuffer(ib); - - bgfx::setTransform(ident); - for (int loopvar = 0; loopvar < m_numberDecaySteps; loopvar++) { int stepi = m_numberDecaySteps - loopvar - 1;