Fix depth test issue in demo.

This commit is contained in:
H. Utku Maden 2024-06-06 22:33:55 +03:00
parent ff4a158cdb
commit 9b16e015f6
2 changed files with 2 additions and 1 deletions

@ -78,7 +78,7 @@ namespace Quik.OpenTK
if (!_glDriver.IsInit) if (!_glDriver.IsInit)
_glDriver.Init(); _glDriver.Init();
GL.Clear(GLEnum.GL_COLOR_BUFFER_BIT); GL.Clear(GLEnum.GL_COLOR_BUFFER_BIT | GLEnum.GL_DEPTH_BUFFER_BIT);
_glDriver.Draw(_vertexEngine.DrawQueue, view); _glDriver.Draw(_vertexEngine.DrawQueue, view);
_window.Context.SwapBuffers(); _window.Context.SwapBuffers();

@ -21,6 +21,7 @@ namespace Quik.OpenGL
GL_BLEND = 0x0BE2, GL_BLEND = 0x0BE2,
GL_COLOR_BUFFER_BIT = 0x00004000, GL_COLOR_BUFFER_BIT = 0x00004000,
GL_DEPTH_BUFFER_BIT = 0x00000100,
GL_SRC_ALPHA = 0x0302, GL_SRC_ALPHA = 0x0302,
GL_ONE_MINUS_SRC_ALPHA = 0x0303, GL_ONE_MINUS_SRC_ALPHA = 0x0303,