Fix T80193 Sequencer: Crash on float images when OCIO GLSL shader can't be used

This was just an oversight from refactoring this code in
rBfaeaf5325554e37981424ded5add7bf2df484c55
This commit is contained in:
Clément Foucault 2020-09-15 15:21:11 +02:00
parent 9f12ea496a
commit 13c7df1054
Notes: blender-bot 2023-02-13 21:22:31 +01:00
Referenced by issue #80193, Sequencer crash on float images when OCIO GLSL shader can't be used
1 changed files with 2 additions and 0 deletions

View File

@ -1524,6 +1524,8 @@ static void *sequencer_OCIO_transform_ibuf(const bContext *C,
* properly, in this case we fallback to CPU-based display transform. */
if ((ibuf->rect || ibuf->rect_float) && !*r_glsl_used) {
display_buffer = IMB_display_buffer_acquire_ctx(C, ibuf, &cache_handle);
*r_format = GPU_RGBA8;
*r_data = GPU_DATA_UNSIGNED_BYTE;
}
if (cache_handle) {
IMB_display_buffer_release(cache_handle);