- check the return value of ogl_LoadFunctions and abort if it indicates failure.

If this happens there is normally something very wrong on the system side so continuing is not advised.
This commit is contained in:
Christoph Oelckers 2017-04-14 15:32:04 +02:00
commit 47bb29bac6
2 changed files with 8 additions and 2 deletions

View file

@ -120,7 +120,10 @@ void OpenGLFrameBuffer::InitializeState()
if (first)
{
ogl_LoadFunctions();
if (ogl_LoadFunctions() == ogl_LOAD_FAILED)
{
I_FatalError("Failed to load OpenGL functions.");
}
}
gl_LoadExtensions();