Skip to content

Commit

Permalink
fix uniform buffer size check
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Feb 4, 2024
1 parent 01a462e commit 5b79395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/rendering/gl_load/gl_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = max(65536, v);
gl.maxuniformblock = min(65536, v);
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
gl.uniformblockalignment = v;

Expand Down

0 comments on commit 5b79395

Please sign in to comment.