Fix for bug #9687: crash with FSA when compiling with openexr support.
[blender.git] / source / blender / render / intern / source / pipeline.c
index 2c6da8b2cb8bae991d2e35f7c8c0345dd63f72ee..09c850b6252fc3cce7e74e92f27c5bcae5fce5c1 100644 (file)
@@ -1081,6 +1081,10 @@ void RE_InitState(Render *re, Render *source, RenderData *rd, int winx, int winy
                re->ok= 0;
        }
        else {
+#ifndef WITH_OPENEXR
+               /* can't do this without openexr support */
+               re->r.scemode &= ~R_EXR_TILE_FILE;
+#endif
                
                if(!(re->r.scemode & R_EXR_TILE_FILE))
                        re->r.scemode &= ~R_FULL_SAMPLE;        /* clear, so we can use this flag for test both */