Global GL render context shouldn't be initialized inside of gl_PrintStartupLog, since it's not compiled in non MSC builds.

This commit is contained in:
Ralgor 2014-09-14 14:42:14 -05:00
commit cfc8f3dbbf
2 changed files with 9 additions and 3 deletions

View file

@ -126,6 +126,15 @@ void OpenGLFrameBuffer::InitializeState()
gl_LoadExtensions();
Super::InitializeState();
int v;
glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &v);
gl.maxuniforms = v;
glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &v);
gl.maxuniformblock = v;
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
gl.uniformblockalignment = v;
if (first)
{
first=false;