Fixed issue causing the viewport axes to sometimes not render correctly

This commit is contained in:
Aruki 2017-07-07 23:14:41 -06:00
parent 5c1d4f70ae
commit 21efd3999f
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ void CBasicViewport::Render()
void CBasicViewport::DrawAxes()
{
// Draw 64x64 axes in lower-left corner with 8px margins
glBlendFunc(GL_ONE, GL_ZERO);
glViewport(8, 8, 64, 64);
glEnable(GL_DEPTH_TEST);
glClear(GL_DEPTH_BUFFER_BIT);