Reset BFC state after enabling it.

This commit is contained in:
Leonardo Zide
2021-03-27 17:52:21 -07:00
parent db4917ee42
commit 0be663f73c
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -237,7 +237,6 @@ void lcViewSphere::Draw()
Context->SetHighlightParams(HighlightPosition, TextColor, BackgroundColor, HighlightColor);
Context->DrawIndexedPrimitives(GL_TRIANGLES, mSubdivisions * mSubdivisions * 6 * 6, GL_UNSIGNED_SHORT, 0);
Context->EnableCullFace(false);
Context->SetDepthFunction(lcDepthFunction::LessEqual);
Context->SetViewport(0, 0, Width, Height);
-1
View File
@@ -631,7 +631,6 @@ void lcPiece::DrawInterface(lcContext* Context, const lcScene& Scene) const
Context->DrawIndexedPrimitives(GL_TRIANGLES, 36, GL_UNSIGNED_SHORT, 0);
}
Context->EnableCullFace(false);
glDisable(GL_BLEND);
}
}