Fix device limit exceeding for uniform buffer

This commit is contained in:
notSanil
2022-03-10 23:13:27 +05:30
parent 8a1c40341c
commit 36fa7059ed
8 changed files with 13 additions and 13 deletions

View File

@ -9962,7 +9962,7 @@ RendererStorageRD::RendererStorageRD() {
using_lightmap_array = true; // high end
if (using_lightmap_array) {
uint32_t textures_per_stage = RD::get_singleton()->limit_get(RD::LIMIT_MAX_TEXTURES_PER_SHADER_STAGE);
uint64_t textures_per_stage = RD::get_singleton()->limit_get(RD::LIMIT_MAX_TEXTURES_PER_SHADER_STAGE);
if (textures_per_stage <= 256) {
lightmap_textures.resize(32);