Fixed last commit

Former-commit-id: 5034392dbdab232be71f8537638ed75c1c81eab8
This commit is contained in:
Lynix
2013-01-02 13:41:26 +01:00
parent 02f5385eaf
commit 520643140c
7 changed files with 12 additions and 16 deletions

View File

@@ -122,8 +122,7 @@ void NzDebugDrawer::Draw(const NzCubef& cube)
vertex->position.Set(max.x, min.y, max.z);
vertex++;
if (!vertexBuffer->Unmap())
NazaraWarning("Failed to unmap buffer");
vertexBuffer->Unmap();
const NzShader* oldShader = NzRenderer::GetShader();
@@ -199,8 +198,7 @@ void NzDebugDrawer::Draw(const NzSkeleton* skeleton)
}
}
if (!vertexBuffer->Unmap())
NazaraWarning("Failed to unmap buffer");
vertexBuffer->Unmap();
if (vertexCount > 0)
{