Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-08-11 21:06:32 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-11 21:07:03 +0300
commit74556a5a17c58151595ddfb18bdf0f0e223865b6 (patch)
treec6354d7eb410594dc13f5237fe497f67224cd708
parent7219abc5bd82048656657b715c4096e7a8756c8f (diff)
Fix T79703 EEVEE: Crash on Macos due to lightcache baking
-rw-r--r--source/blender/gpu/intern/gpu_texture.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c
index 1e81f6e86a4..5bbfd04c114 100644
--- a/source/blender/gpu/intern/gpu_texture.c
+++ b/source/blender/gpu/intern/gpu_texture.c
@@ -677,6 +677,13 @@ static float *GPU_texture_rescale_3d(
static bool gpu_texture_check_capacity(
GPUTexture *tex, GLenum proxy, GLenum internalformat, GLenum data_format, GLenum data_type)
{
+ if (proxy == GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB &&
+ GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_MAC, GPU_DRIVER_ANY)) {
+ /* Special fix for T79703. */
+ /* Depth has already been checked. */
+ return tex->w <= GPU_max_cube_map_size();
+ }
+
if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_WIN, GPU_DRIVER_ANY) ||
GPU_type_matches(GPU_DEVICE_NVIDIA, GPU_OS_MAC, GPU_DRIVER_OFFICIAL) ||
GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_UNIX, GPU_DRIVER_OFFICIAL)) {