Fix T74805 Workbench: Back faces flicker with Auto Depth is enabled

This commit is contained in:
Clément Foucault 2020-04-17 14:57:19 +02:00
parent 96825403a6
commit a250be980a
Notes: blender-bot 2023-02-14 02:30:11 +01:00
Referenced by issue #75902, Workbench render crash
Referenced by issue #74805, Back faces flicker when Auto Depth and Backface Culling is enabled
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd)
}
wpd->clip_state = clip_state;
wpd->cull_state = CULL_BACKFACE_ENABLED(wpd) ? DRW_STATE_CULL_BACK : 0;
wpd->cull_state = CULL_BACKFACE_ENABLED(v3d) ? DRW_STATE_CULL_BACK : 0;
wpd->vldata = vldata;
wpd->world_ubo = vldata->world_ubo;