Browse Source

Do not use shadow cubemaps if depth write is not supported to avoid errors, closes #25219

Juan Linietsky 6 năm trước cách đây
mục cha
commit
4333a68ca0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/gles2/rasterizer_scene_gles2.cpp

+ 1 - 1
drivers/gles2/rasterizer_scene_gles2.cpp

@@ -3135,7 +3135,7 @@ void RasterizerSceneGLES2::initialize() {
 	}
 
 	// cubemaps for shadows
-	{
+	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;