Fix #137756: EEVEE: Crash when saving while using textured volume on world

This happened because the Volume module was not initialized
before `begin_sync` which was using it.
This commit is contained in:
Clément Foucault
2025-04-24 12:40:05 +02:00
parent 3f11d16501
commit c1493a9518

View File

@@ -1336,6 +1336,8 @@ void DRW_draw_render_loop_offscreen(Depsgraph *depsgraph,
DRWContext draw_ctx(mode, depsgraph, render_viewport, nullptr, region, v3d);
draw_ctx.acquire_data();
draw_ctx.options.draw_background = draw_background;
/* Init modules ahead of time because the begin_sync happens before DRW_render_object_iter. */
draw_ctx.data->modules_init();
drw_draw_render_loop_3d(draw_ctx, engine_type);