summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorbitsawer <sawerduster@gmail.com>2023-09-14 16:24:04 +0300
committerbitsawer <sawerduster@gmail.com>2023-09-14 16:34:29 +0300
commitaf7b870e2a6a730c9cd365ecfc8fc03869767277 (patch)
treef85ea6708a2f32a2c83d90f3b1e60183e10b2b35 /drivers
parent3ed4497113fa10611b90290ce22a751fb9d26e2e (diff)
downloadredot-engine-af7b870e2a6a730c9cd365ecfc8fc03869767277.tar.gz
Improve GLES3 scene renderer compatibility with older devices
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles3/rasterizer_scene_gles3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp
index 1fe33b7914..d8531dd8bc 100644
--- a/drivers/gles3/rasterizer_scene_gles3.cpp
+++ b/drivers/gles3/rasterizer_scene_gles3.cpp
@@ -2666,7 +2666,7 @@ RasterizerSceneGLES3::RasterizerSceneGLES3() {
global_defines += "#define MAX_GLOBAL_SHADER_UNIFORMS 256\n"; // TODO: this is arbitrary for now
global_defines += "\n#define MAX_LIGHT_DATA_STRUCTS " + itos(config->max_renderable_lights) + "\n";
global_defines += "\n#define MAX_DIRECTIONAL_LIGHT_DATA_STRUCTS " + itos(MAX_DIRECTIONAL_LIGHTS) + "\n";
- global_defines += "\n#define MAX_FORWARD_LIGHTS uint(" + itos(config->max_lights_per_object) + ")\n";
+ global_defines += "\n#define MAX_FORWARD_LIGHTS " + itos(config->max_lights_per_object) + "u\n";
material_storage->shaders.scene_shader.initialize(global_defines);
scene_globals.shader_default_version = material_storage->shaders.scene_shader.version_create();
material_storage->shaders.scene_shader.version_bind_shader(scene_globals.shader_default_version, SceneShaderGLES3::MODE_COLOR);