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:
parent
4bb9d2a997
commit
f2519d92a0
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user