Make query for GL_MAX_VIEWPORT_DIMS compatible with web exports
This commit is contained in:
@ -2742,8 +2742,7 @@ RasterizerCanvasGLES3::RasterizerCanvasGLES3() {
|
||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||
}
|
||||
|
||||
int uniform_max_size = config->max_uniform_buffer_size;
|
||||
if (uniform_max_size < 65536) {
|
||||
if (config->max_uniform_buffer_size < 65536) {
|
||||
data.max_lights_per_render = 64;
|
||||
} else {
|
||||
data.max_lights_per_render = 256;
|
||||
|
||||
Reference in New Issue
Block a user