Fix T53874: OpenGL render problem with OpenEXR in 2.8 with float buffers.
[blender.git] / source / blender / render / intern / source / render_result.c
index 0499577726c98219d24059d67d3b3204d228d1b7..a3eeed2b144f2d5566992f5b7447d3bbf9471fd2 100644 (file)
@@ -80,6 +80,8 @@ static void render_result_views_free(RenderResult *res)
 
                MEM_freeN(rv);
        }
+
+       res->have_combined = false;
 }
 
 void render_result_free(RenderResult *res)
@@ -1356,6 +1358,8 @@ void RE_render_result_rect_from_ibuf(RenderResult *rr, RenderData *UNUSED(rd), I
        RenderView *rv = RE_RenderViewGetById(rr, view_id);
 
        if (ibuf->rect_float) {
+               rr->have_combined = true;
+
                if (!rv->rectf)
                        rv->rectf = MEM_mallocN(4 * sizeof(float) * rr->rectx * rr->recty, "render_seq rectf");
                
@@ -1366,6 +1370,8 @@ void RE_render_result_rect_from_ibuf(RenderResult *rr, RenderData *UNUSED(rd), I
                MEM_SAFE_FREE(rv->rect32);
        }
        else if (ibuf->rect) {
+               rr->have_combined = true;
+
                if (!rv->rect32)
                        rv->rect32 = MEM_mallocN(sizeof(int) * rr->rectx * rr->recty, "render_seq rect");