Disable lighting once, globally

This commit is contained in:
iProgramInCpp
2023-08-18 22:41:51 +03:00
parent 53c586bec8
commit a689ee7365
2 changed files with 1 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ void NinecraftApp::initGLStates()
glCullFace(GL_BACK);
glEnable(GL_TEXTURE_2D);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
glDisable(GL_LIGHTING);
}
int NinecraftApp::getFpsIntlCounter()

View File

@@ -539,7 +539,6 @@ void LevelRenderer::render(Mob* pMob, int a, float b)
x3 = m_chunksLength;
glDisable(GL_TEXTURE_2D);
glDisable(GL_LIGHTING);
glDisable(GL_ALPHA_TEST);
glDisable(GL_FOG);
glColorMask(false, false, false, false);