[Bf-blender-cvs] [3e36829394b] blender-v2.83-release: Fix T75943 EEVEE: Cubemaps shows black

Clément Foucault noreply at git.blender.org
Mon Jul 13 17:13:33 CEST 2020


Commit: 3e36829394bb652dc4c8225e872fcea79ae434cb
Author: Clément Foucault
Date:   Tue Jul 7 18:37:35 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB3e36829394bb652dc4c8225e872fcea79ae434cb

Fix T75943 EEVEE: Cubemaps shows black

Caused by faulty driver implementation. Force fallback method.

===================================================================

M	source/blender/gpu/intern/gpu_extensions.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index 7b0825a2d8e..8bdac970326 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -350,6 +350,12 @@ void gpu_extensions_init(void)
     GG.context_local_shaders_workaround = GLEW_ARB_get_program_binary;
   }
 
+  /* Intel Ivy Bridge GPU's seems to have buggy cubemap array support. (see T75943) */
+  if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_WIN, GPU_DRIVER_OFFICIAL) &&
+      (strstr(renderer, "HD Graphics 4000") || strstr(renderer, "HD Graphics 2500"))) {
+    GG.glew_arb_texture_cube_map_array_is_supported = false;
+  }
+
   /* df/dy calculation factors, those are dependent on driver */
   GG.dfdyfactors[0] = 1.0;
   GG.dfdyfactors[1] = 1.0;



More information about the Bf-blender-cvs mailing list