Fix T75902 Workbench: render crash
This commit is contained in:
@@ -199,7 +199,6 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd)
|
|||||||
}
|
}
|
||||||
wpd->clip_state = clip_state;
|
wpd->clip_state = clip_state;
|
||||||
|
|
||||||
wpd->cull_state = CULL_BACKFACE_ENABLED(v3d) ? DRW_STATE_CULL_BACK : 0;
|
|
||||||
wpd->vldata = vldata;
|
wpd->vldata = vldata;
|
||||||
wpd->world_ubo = vldata->world_ubo;
|
wpd->world_ubo = vldata->world_ubo;
|
||||||
|
|
||||||
@@ -266,6 +265,8 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd)
|
|||||||
copy_v4_fl(wpd->background_color, 0.0f);
|
copy_v4_fl(wpd->background_color, 0.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wpd->cull_state = CULL_BACKFACE_ENABLED(wpd) ? DRW_STATE_CULL_BACK : 0;
|
||||||
|
|
||||||
if (wpd->shading.light == V3D_LIGHTING_MATCAP) {
|
if (wpd->shading.light == V3D_LIGHTING_MATCAP) {
|
||||||
wpd->studio_light = BKE_studiolight_find(wpd->shading.matcap, STUDIOLIGHT_TYPE_MATCAP);
|
wpd->studio_light = BKE_studiolight_find(wpd->shading.matcap, STUDIOLIGHT_TYPE_MATCAP);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user