Keep BFC disabled. Fixes #717.

This commit is contained in:
Leonardo Zide
2021-05-16 15:53:59 -07:00
parent 1b25e20d95
commit f69ecf7fc0
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -237,6 +237,7 @@ 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,6 +631,7 @@ void lcPiece::DrawInterface(lcContext* Context, const lcScene& Scene) const
Context->DrawIndexedPrimitives(GL_TRIANGLES, 36, GL_UNSIGNED_SHORT, 0);
}
Context->EnableCullFace(false);
glDisable(GL_BLEND);
}
}