Fix T44836: crash when multi-view is enabled and switching to BI rendered viewport display

This commit is contained in:
Dalai Felinto
2015-05-25 10:14:19 -03:00
parent 2464395b6d
commit 3a7691b73f

View File

@@ -3887,7 +3887,7 @@ RenderPass *RE_pass_find_by_type(volatile RenderLayer *rl, int passtype, const c
for (rp = rl->passes.last; rp; rp = rp->prev) {
if (rp->passtype == passtype) {
if (viewname == NULL)
if (viewname == NULL || viewname[0] == '\0')
break;
else if (STREQ(rp->view, viewname))
break;