lightpreview: fix lack of depth testing / backface culling

This commit is contained in:
Eric Wasylishen 2023-05-19 20:16:38 -06:00
parent b33591fe0f
commit ce25e9c3d0
1 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,10 @@ void GLView::initializeGL()
m_program_mvp_location = m_program->uniformLocation("MVP");
m_program_texture_sampler_location = m_program->uniformLocation("texture_sampler");
m_vao.create();
glEnable(GL_DEPTH_TEST);
glEnable(GL_CULL_FACE);
glFrontFace(GL_CW);
}
void GLView::paintGL()