Fix: Compilation error after 960b53dbbb
This commit is contained in:
parent
51d10f4400
commit
644dd14e26
|
@ -307,8 +307,7 @@ void Instance::render_read_result(RenderLayer *render_layer, const char *view_na
|
|||
* However, on some implementation, we need a buffer with a few extra bytes for the read to
|
||||
* happen correctly (see GLTexture::read()). So we need a custom memory allocation. */
|
||||
/* Avoid memcpy(), replace the pointer directly. */
|
||||
MEM_SAFE_FREE(rp->rect);
|
||||
rp->rect = result;
|
||||
RE_pass_set_buffer_data(rp, result);
|
||||
BLI_mutex_unlock(&render->update_render_passes_mutex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue