mirror of
https://github.com/godotengine/godot.git
synced 2025-04-01 00:41:35 +08:00
Fix crash with cube shadows in gles2, closes #22635
This commit is contained in:
parent
cce679584b
commit
fb7c526ec4
@ -3135,7 +3135,7 @@ void RasterizerSceneGLES2::initialize() {
|
||||
}
|
||||
|
||||
// cubemaps for shadows
|
||||
if (!storage->config.support_write_depth) { //not going to be used
|
||||
if (storage->config.support_write_depth) { //not going to be used
|
||||
int max_shadow_cubemap_sampler_size = 512;
|
||||
|
||||
int cube_size = max_shadow_cubemap_sampler_size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user