mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-03 11:25:51 +00:00
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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user