Fix stereo plane pass and state

This was introduced on the MSAA fix for transparent passes (61039bf713).
This commit is contained in:
Dalai Felinto 2019-03-06 12:53:58 -03:00
parent 35a2edf761
commit 0ec98863e2
1 changed files with 2 additions and 1 deletions

View File

@ -1396,7 +1396,8 @@ static void OBJECT_cache_init(void *vedata)
sgl->camera_stereo_volume = shgroup_instance_alpha(sgl->transp_shapes, geom, draw_ctx->sh_cfg);
geom = DRW_cache_quad_get();
sgl->camera_stereo_plane = shgroup_instance_alpha(sgl->non_meshes, geom, draw_ctx->sh_cfg);
sgl->camera_stereo_plane = shgroup_instance_alpha(sgl->transp_shapes, geom, draw_ctx->sh_cfg);
DRW_shgroup_state_disable(sgl->camera_stereo_plane, DRW_STATE_CULL_FRONT);
}
{