Removes legacy glEnable of GL_TEXTURE_2D

It needs to bo enabled only for fixed-function pipeline.

https://registry.khronos.org/OpenGL-Refpages/gl2.1/

> If enabled and no fragment shader is active, two-dimensional texturing is performed
This commit is contained in:
Vladislav Belov
2026-06-28 15:56:33 +02:00
parent 74f11d2fd2
commit 0cc07aa209
-5
View File
@@ -251,11 +251,6 @@ std::unique_ptr<IDevice> CDevice::Create(SDL_Window* window)
glPixelStorei(GL_PACK_ALIGNMENT, 1);
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glEnable(GL_TEXTURE_2D);
// glEnable(GL_TEXTURE_2D) is deprecated and might trigger an error. But we
// still support pre 2.0 drivers pretending to support 2.0.
ogl_SquelchError(GL_INVALID_ENUM);
// Some drivers might invalidate an incorrect surface which leads to artifacts.
if (g_ConfigDB.Get("renderer.backend.gl.enableframebufferinvalidating", false))
{