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.
This commit is contained in:
Clément Foucault 2019-06-26 13:42:41 +02:00
parent 57bb575aa8
commit b3a2de9d18
Notes: blender-bot 2023-05-03 10:14:48 +02:00
Referenced by issue #66099, Color Balance node
Referenced by issue #65951, Saving project right before rendering (Cycles) causes empty render-preview
1 changed files with 1 additions and 0 deletions

View File

@ -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);