Better fix for T44556: Crash on the World Properties > Preview

This commit is contained in:
Dalai Felinto 2015-04-30 12:11:48 -03:00
parent 179fff94e8
commit 078e589263
1 changed files with 3 additions and 0 deletions

View File

@ -550,6 +550,9 @@ static bool ed_preview_draw_rect(ScrArea *sa, int split, int first, rcti *rect,
/* test if something rendered ok */
re = RE_GetRender(name);
if (re == NULL)
return;
RE_AcquireResultImageViews(re, &rres);
/* material preview only needs monoscopy (view 0) */