Do not use shadow cubemaps if depth write is not supported to avoid errors, closes #25219
This commit is contained in:
parent
e081cec69f
commit
4333a68ca0
1 changed files with 1 additions and 1 deletions
|
@ -3135,7 +3135,7 @@ void RasterizerSceneGLES2::initialize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// cubemaps for shadows
|
// cubemaps for shadows
|
||||||
{
|
if (!storage->config.support_write_depth) { //not going to be used
|
||||||
int max_shadow_cubemap_sampler_size = 512;
|
int max_shadow_cubemap_sampler_size = 512;
|
||||||
|
|
||||||
int cube_size = max_shadow_cubemap_sampler_size;
|
int cube_size = max_shadow_cubemap_sampler_size;
|
||||||
|
|
Loading…
Reference in a new issue