mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
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:
parent
1a70a6aabc
commit
cfc8f3dbbf
2 changed files with 9 additions and 3 deletions
|
@ -126,6 +126,15 @@ void OpenGLFrameBuffer::InitializeState()
|
||||||
|
|
||||||
gl_LoadExtensions();
|
gl_LoadExtensions();
|
||||||
Super::InitializeState();
|
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)
|
if (first)
|
||||||
{
|
{
|
||||||
first=false;
|
first=false;
|
||||||
|
|
|
@ -168,15 +168,12 @@ void gl_PrintStartupLog()
|
||||||
Printf ("Max. texture units: %d\n", v);
|
Printf ("Max. texture units: %d\n", v);
|
||||||
glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &v);
|
glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &v);
|
||||||
Printf ("Max. fragment uniforms: %d\n", v);
|
Printf ("Max. fragment uniforms: %d\n", v);
|
||||||
gl.maxuniforms = v;
|
|
||||||
glGetIntegerv(GL_MAX_VERTEX_UNIFORM_COMPONENTS, &v);
|
glGetIntegerv(GL_MAX_VERTEX_UNIFORM_COMPONENTS, &v);
|
||||||
Printf ("Max. vertex uniforms: %d\n", v);
|
Printf ("Max. vertex uniforms: %d\n", v);
|
||||||
glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &v);
|
glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &v);
|
||||||
Printf ("Max. uniform block size: %d\n", v);
|
Printf ("Max. uniform block size: %d\n", v);
|
||||||
gl.maxuniformblock = v;
|
|
||||||
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
|
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
|
||||||
Printf ("Uniform block alignment: %d\n", v);
|
Printf ("Uniform block alignment: %d\n", v);
|
||||||
gl.uniformblockalignment = v;
|
|
||||||
|
|
||||||
glGetIntegerv(GL_MAX_VARYING_FLOATS, &v);
|
glGetIntegerv(GL_MAX_VARYING_FLOATS, &v);
|
||||||
Printf ("Max. varying: %d\n", v);
|
Printf ("Max. varying: %d\n", v);
|
||||||
|
|
Loading…
Reference in a new issue