Clear output window depth as well as colour when rendering empty mesh

This commit is contained in:
baldurk
2016-01-26 19:23:16 +01:00
parent cae7509a33
commit 8527f7afc8
+1
View File
@@ -554,6 +554,7 @@ void ReplayOutput::DisplayMesh()
float color[4] = {0.0f, 0.0f, 0.0f, 0.0f};
m_pDevice->BindOutputWindow(m_MainOutput.outputID, false);
m_pDevice->ClearOutputWindowColour(m_MainOutput.outputID, color);
m_pDevice->ClearOutputWindowDepth(m_MainOutput.outputID, 1.0f, 0);
m_pDevice->RenderCheckerboard(Vec3f(0.666f, 0.666f, 0.666f), Vec3f(0.333f, 0.333f, 0.333f));
return;