Browse Source

Removed useless code from example.

Branimir Karadžić 10 years ago
parent
commit
6b7739660c
1 changed files with 0 additions and 11 deletions
  1. 0 11
      examples/23-vectordisplay/vectordisplay.cpp

+ 0 - 11
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;