diff --git a/source/blender/imbuf/intern/allocimbuf.cc b/source/blender/imbuf/intern/allocimbuf.cc index ad70196a8c8..1c5f9ab5b79 100644 --- a/source/blender/imbuf/intern/allocimbuf.cc +++ b/source/blender/imbuf/intern/allocimbuf.cc @@ -635,6 +635,10 @@ ImBuf *IMB_dupImBuf(const ImBuf *ibuf1) tbuf.display_buffer_flags = nullptr; tbuf.colormanage_cache = nullptr; + /* GPU textures can not be easily copied, as it is not guaranteed that this function is called + * from within an active GPU context. */ + tbuf.gpu.texture = nullptr; + *ibuf2 = tbuf; return ibuf2;