Fix #109718: Cycles crash with persistent data and bpy.ops.render
Don't reuse freed context for subsequent render.
This commit is contained in:
parent
9a879b27b3
commit
b29d2c607d
@ -1327,6 +1327,7 @@ void RE_engine_gpu_context_destroy(RenderEngine *engine)
|
||||
engine->blender_gpu_context = nullptr;
|
||||
}
|
||||
WM_system_gpu_context_dispose(engine->wm_blender_gpu_context);
|
||||
engine->wm_blender_gpu_context = nullptr;
|
||||
|
||||
DRW_gpu_context_activate(drw_state);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user