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>2018-12-11 15:29:32 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-12-11 18:21:17 +0300
commit2a6bc4a82cb3201ac623512e3f9f53f3890ecae2 (patch)
treea095001710e5fb8146c21d57f60359157963e15e
parent4d115f21595d255f2d335d2f307ee822b381ea54 (diff)
Fix T58266 : Bottom half of meshes are transparent with eevee render
-rw-r--r--source/blender/draw/engines/eevee/eevee_effects.c8
-rw-r--r--source/blender/draw/engines/eevee/eevee_occlusion.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_effects.c b/source/blender/draw/engines/eevee/eevee_effects.c
index 48a73ccef18..787957a4a33 100644
--- a/source/blender/draw/engines/eevee/eevee_effects.c
+++ b/source/blender/draw/engines/eevee/eevee_effects.c
@@ -460,10 +460,10 @@ void EEVEE_create_minmax_buffer(EEVEE_Data *vedata, GPUTexture *depth_src, int l
/* Restore */
GPU_framebuffer_bind(fbl->main_fb);
- if (GPU_mip_render_workaround()) {
- /* Fix dot corruption on intel HD5XX/HD6XX series.
- * It seems affected drivers are the same that needs
- * GPU_mip_render_workaround. */
+ if (GPU_mip_render_workaround() ||
+ GPU_type_matches(GPU_DEVICE_INTEL_UHD, GPU_OS_WIN, GPU_DRIVER_ANY))
+ {
+ /* Fix dot corruption on intel HD5XX/HD6XX series. */
GPU_flush();
}
}
diff --git a/source/blender/draw/engines/eevee/eevee_occlusion.c b/source/blender/draw/engines/eevee/eevee_occlusion.c
index 03aee102136..3763e13533d 100644
--- a/source/blender/draw/engines/eevee/eevee_occlusion.c
+++ b/source/blender/draw/engines/eevee/eevee_occlusion.c
@@ -253,10 +253,10 @@ void EEVEE_occlusion_compute(
DRW_draw_pass(psl->ao_horizon_search);
}
- if (GPU_mip_render_workaround()) {
- /* Fix dot corruption on intel HD5XX/HD6XX series.
- * It seems affected drivers are the same that needs
- * GPU_mip_render_workaround. */
+ if (GPU_mip_render_workaround() ||
+ GPU_type_matches(GPU_DEVICE_INTEL_UHD, GPU_OS_WIN, GPU_DRIVER_ANY))
+ {
+ /* Fix dot corruption on intel HD5XX/HD6XX series. */
GPU_flush();
}