Bug fix: Rendering with anti-aliasing disabled and full samples enabled crashed

* Disabling anti-aliasing disables full samples in ui, so do that in render code too.
This commit is contained in:
Janne Karhu 2010-11-06 21:32:58 +00:00
parent d475448bdd
commit 9e7c968113

@ -1247,6 +1247,9 @@ void RE_InitState(Render *re, Render *source, RenderData *rd, SceneRenderLayer *
return;
}
if((re->r.mode & (R_OSA))==0)
re->r.scemode &= ~R_FULL_SAMPLE;
#ifdef WITH_OPENEXR
if(re->r.scemode & R_FULL_SAMPLE)
re->r.scemode |= R_EXR_TILE_FILE; /* enable automatic */