- glEnable(GL_TEXTURE_2D) only makes sense if no shaders are being used.

This commit is contained in:
Christoph Oelckers 2016-08-21 08:45:21 +02:00
parent 5c267a2169
commit dde81b33ea

View file

@ -157,7 +157,7 @@ void OpenGLFrameBuffer::InitializeState()
glEnable(GL_BLEND);
glEnable(GL_DEPTH_CLAMP);
glDisable(GL_DEPTH_TEST);
glEnable(GL_TEXTURE_2D);
if (gl.glslversion == 0) glEnable(GL_TEXTURE_2D);
glDisable(GL_LINE_SMOOTH);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);