Culling was wrongly disabled

This commit is contained in:
Vincent Lejeune 2014-11-04 02:06:17 +01:00
parent 2f4edb6183
commit 3eafdd9729

View File

@ -981,8 +981,8 @@ void IrrDriver::renderShadows()
m_rtts->getShadowFBO().Bind();
glEnable(GL_POLYGON_OFFSET_FILL);
glPolygonOffset(1.5, 0.);
// glCullFace(GL_BACK);
// glEnable(GL_CULL_FACE);
glCullFace(GL_BACK);
glEnable(GL_CULL_FACE);
glClearColor(1., 1., 1., 1.);
glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);