[Bf-blender-cvs] [b3a2de9d181] master: Fix T65951 Saving project right before rendering (Cycles) causes empty render-preview
Clément Foucault
noreply at git.blender.org
Wed Jun 26 13:42:49 CEST 2019
Commit: b3a2de9d181ab69c192c737e24a7b808081df06b
Author: Clément Foucault
Date: Wed Jun 26 13:42:41 2019 +0200
Branches: master
https://developer.blender.org/rBb3a2de9d181ab69c192c737e24a7b808081df06b
Fix T65951 Saving project right before rendering (Cycles) causes empty render-preview
Since we are now using the full framebuffer (color+depth) inside the image
editor, we need to disable the depth test by default.
===================================================================
M source/blender/editors/space_image/space_image.c
===================================================================
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index 931142d2925..6bf79711ae5 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -602,6 +602,7 @@ static void image_main_region_draw(const bContext *C, ARegion *ar)
UI_GetThemeColor3fv(TH_BACK, col);
GPU_clear_color(col[0], col[1], col[2], 0.0f);
GPU_clear(GPU_COLOR_BIT);
+ GPU_depth_test(false);
image_user_refresh_scene(C, sima);
More information about the Bf-blender-cvs
mailing list