Keep BFC disabled. Fixes #717.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user