1
0
forked from 0ad/0ad

Fixes GL ES version report after GL_INVALID_ENUM triggered by glEnable(GL_TEXTURE_2D).

This was SVN commit r27564.
This commit is contained in:
Vladislav Belov 2023-02-28 16:56:36 +00:00
parent 4bb9d2a997
commit f2519d92a0

View File

@ -353,6 +353,9 @@ std::unique_ptr<IDevice> CDevice::Create(SDL_Window* window, const bool arb)
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);
if (arb)
{