Merge branch 'Fix_depth_funcs_ortho' into 'master'

fix depth_funcs_ortho - show blue and green quads

See merge request simulant/GLdc!88
This commit is contained in:
Luke Benstead 2022-01-31 10:05:03 +00:00
commit 12080967c2

View File

@ -82,9 +82,9 @@ void DrawGLScene()
glDepthFunc(GL_LEQUAL);
//RED over GREEN over BLUE
DrawSquare(100.0, 1.0, 0.0, 0.0, 0.0);
glTranslatef(50, 0, 0.03f);
glTranslatef(50, 0, -0.03f);
DrawSquare(100, 0, 1, 0, 0);
glTranslatef(50, 0, 0.03f);
glTranslatef(50, 0, -0.03f);
DrawSquare(100, 0, 0, 1, 0);
// swap buffers to display, since we're double buffered.