- initialize the GL backend in the proper place.

As long as there are still video mode switches this needs to be in the video mode switching function.
This commit is contained in:
Christoph Oelckers 2019-09-23 23:33:59 +02:00
parent a5441061e9
commit ad4527c8be
6 changed files with 17 additions and 4 deletions

View file

@ -794,8 +794,6 @@ void polymost_glinit()
//glEnable(GL_LINE_SMOOTH);
globalflags |= GLOBAL_NO_GL_TILESHADES; // This re-enables the old fading logic without re-adding the r_usetileshades variable. The entire thing will have to be done on a more abstract level anyway.
GLInterface.Init();
GLInterface.mSamplers->SetTextureFilterMode(gltexfiltermode, glanisotropy);
#ifdef USE_GLEXT