Fix #112632: crash batch generating previews with Cycles #112971

Merged
Clément Foucault merged 1 commits from brecht/blender:fix-112632 into blender-v4.0-release 2023-09-28 16:13:20 +02:00

1 Commits

Author SHA1 Message Date
fe75ebb3e1 Fix #112632: crash batch generating previews with Cycles
Don't assume existence of GPU backend in (background) preview rendering.

Also add null pointer checks and rely on assert instead to detect
invalid usage of GPU_render_begin/end, so that potential future mistakes
don't cause crashes.
2023-09-27 20:16:05 +02:00