Removed useless code from example.

This commit is contained in:
Branimir Karadžić 2015-03-05 09:19:33 -08:00
parent 5185e2f901
commit 6b7739660c

View file

@ -152,9 +152,6 @@ void VectorDisplay::beginFrame()
void VectorDisplay::endFrame() void VectorDisplay::endFrame()
{ {
float proj[16]; 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); 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); 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(); 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++) for (int loopvar = 0; loopvar < m_numberDecaySteps; loopvar++)
{ {
int stepi = m_numberDecaySteps - loopvar - 1; int stepi = m_numberDecaySteps - loopvar - 1;