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-07-07 19:37:35 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-07-07 19:38:21 +0300
commitff97545c50f458a62a2ea412f8411f8bb34b9c1c (patch)
treeab290256a75f39cba61a3a68866da039bb689d52 /source/blender/gpu/intern/gpu_extensions.c
parent1e2ff4f81b14b6f65f776044445037623914d6fc (diff)
Fix T75943 EEVEE: Cubemaps shows black
Caused by faulty driver implementation. Force fallback method.
Diffstat (limited to 'source/blender/gpu/intern/gpu_extensions.c')
-rw-r--r--source/blender/gpu/intern/gpu_extensions.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index 4e4e9c526d0..0fd373d37a3 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -348,6 +348,12 @@ void gpu_extensions_init(void)
GG.mip_render_workaround = true;
}
+ /* 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;