[ClientChunk] Small fix.

This commit is contained in:
Quentin Bazin 2020-02-03 14:57:31 +09:00
parent 33cb40fccd
commit 0f05a11bc3

View File

@ -29,11 +29,7 @@ void ClientChunk::drawLayer(gk::RenderTarget &target, gk::RenderStates states, u
states.texture = &m_textureAtlas.texture();
if (layer == ChunkBuilder::Layer::Other)
glCheck(glDisable(GL_CULL_FACE));
else
glCheck(glEnable(GL_CULL_FACE));
glCheck(glEnable(GL_CULL_FACE));
glCheck(glEnable(GL_DEPTH_TEST));
if(Config::isWireframeModeEnabled) glCheck(glPolygonMode(GL_FRONT_AND_BACK, GL_LINE));