From 2a6bc4a82cb3201ac623512e3f9f53f3890ecae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 11 Dec 2018 13:29:32 +0100 Subject: Fix T58266 : Bottom half of meshes are transparent with eevee render --- source/blender/draw/engines/eevee/eevee_effects.c | 8 ++++---- source/blender/draw/engines/eevee/eevee_occlusion.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'source') 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(); } -- cgit v1.2.3