Fix #26100 by casting to integer.
This commit is contained in:
parent
ce114e35dd
commit
7f289304af
1 changed files with 1 additions and 1 deletions
|
@ -5053,7 +5053,7 @@ void RasterizerSceneGLES3::initialize() {
|
|||
state.scene_shader.add_custom_define("#define MAX_LIGHT_DATA_STRUCTS " + itos(state.max_ubo_lights) + "\n");
|
||||
state.scene_shader.add_custom_define("#define MAX_FORWARD_LIGHTS " + itos(state.max_forward_lights_per_object) + "\n");
|
||||
|
||||
state.max_ubo_reflections = MIN(RenderList::MAX_REFLECTIONS, max_ubo_size / sizeof(ReflectionProbeDataUBO));
|
||||
state.max_ubo_reflections = MIN((int)RenderList::MAX_REFLECTIONS, max_ubo_size / sizeof(ReflectionProbeDataUBO));
|
||||
|
||||
state.reflection_array_tmp = (uint8_t *)memalloc(sizeof(ReflectionProbeDataUBO) * state.max_ubo_reflections);
|
||||
|
||||
|
|
Loading…
Reference in a new issue