Fix: Compilation error after 960b53dbbb

This commit is contained in:
Miguel Pozo 2023-05-30 15:59:50 +02:00
parent 51d10f4400
commit 644dd14e26
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}