lightpreview: fix lack of depth testing / backface culling
This commit is contained in:
parent
b33591fe0f
commit
ce25e9c3d0
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue