mirror of
https://github.com/leozide/leocad.git
synced 2026-07-27 19:56:49 +00:00
Reset BFC state after enabling it.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user