mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-23 01:11:30 +00:00
limit the size of uniform buffers to 65536 bytes globally.
This commit is contained in:
parent
3dbc67150d
commit
fe7738e9cc
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ void gl_LoadExtensions()
|
|||
glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &v);
|
||||
gl.maxuniforms = v;
|
||||
glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &v);
|
||||
gl.maxuniformblock = v;
|
||||
gl.maxuniformblock = max(65536, v);
|
||||
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
|
||||
gl.uniformblockalignment = v;
|
||||
|
||||
|
|
Loading…
Reference in a new issue