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;