Skip to content

Commit

Permalink
Merge pull request #83141 from BastiaanOlij/fix_shadow_size
Browse files Browse the repository at this point in the history
Fix compatibility shadow size not being initialised
  • Loading branch information
akien-mga committed Oct 11, 2023
2 parents 4b7cc99 + 59cd86f commit 775ab4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gles3/storage/light_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "../rasterizer_gles3.h"
#include "../rasterizer_scene_gles3.h"
#include "config.h"
#include "core/config/project_settings.h"
#include "texture_storage.h"

using namespace GLES3;
Expand All @@ -46,6 +47,11 @@ LightStorage *LightStorage::get_singleton() {

LightStorage::LightStorage() {
singleton = this;

directional_shadow.size = GLOBAL_GET("rendering/lights_and_shadows/directional_shadow/size");
directional_shadow.use_16_bits = GLOBAL_GET("rendering/lights_and_shadows/directional_shadow/16_bits");

// lightmap_probe_capture_update_speed = GLOBAL_GET("rendering/lightmapping/probe_capture/update_speed");
}

LightStorage::~LightStorage() {
Expand Down

0 comments on commit 775ab4e

Please sign in to comment.