- replaced GLEW with GLLoadGen for GL access. This allows to have a header that only contains what's actually required, namely OpenGL 3.3 plus glBegin and glEnd which are the only compatibility functions needed for the fallback render path.

GLEW has two major problems:

- it always includes everything, there is no way to restrict the header to a specific GL version
- it is mostly broken with a core profile and only works if all sanity checks get switched off.
This commit is contained in:
Christoph Oelckers 2014-08-21 11:02:46 +02:00
commit e132fc5eed
7 changed files with 3156 additions and 43 deletions

View file

@ -121,8 +121,7 @@ void OpenGLFrameBuffer::InitializeState()
if (first)
{
glewExperimental=true;
glewInit();
ogl_LoadFunctions();
}
gl_LoadExtensions();
@ -536,4 +535,5 @@ void OpenGLFrameBuffer::GameRestart()
ScreenshotBuffer = NULL;
LastCamera = NULL;
gl_GenerateGlobalBrightmapFromColormap();
}
}