mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
fix uniform buffer size check
This commit is contained in:
parent
01a462e9d4
commit
5b793958f9
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ void gl_LoadExtensions()
|
||||||
glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &v);
|
glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &v);
|
||||||
gl.maxuniforms = v;
|
gl.maxuniforms = v;
|
||||||
glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &v);
|
glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &v);
|
||||||
gl.maxuniformblock = max(65536, v);
|
gl.maxuniformblock = min(65536, v);
|
||||||
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
|
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
|
||||||
gl.uniformblockalignment = v;
|
gl.uniformblockalignment = v;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue