mirror of https://github.com/ZDoom/gzdoom.git
limit uniform blocks to 64kb.
The GL uniform code is not capable of dealing with large blocks, so restrict it to what most drivers report as their maximum.
This commit is contained in:
parent
3f72f8acd5
commit
d0a2713820
|
@ -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 New Issue