mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
Currently, Cycles Standalone links against a system SDL2 for creating
its window. This is due to our previous SDL2 pre-compiled dependency
not providing the video module required for windowing due to it only
being used for audio. With the recent SDL3 migration (!157521), the
video submodule was enabled, allowing it to now be also used for Cycles
Standalone windowing.
Changes:
- Remove SDL2 external library find_package from `external_libs.cmake`
- Link against Blender's own `bf::dependencies::optional::sdl` target
- Make the internal `WITH_SDL` uncached CMake variable depend on
`WITH_CYCLES_STANDALONE_GUI`
- Migrate SDL2 code in `window.cpp` to SDL3, based off Campbell's
original SDL3 patch[^1]
[^1]:
|
||
|---|---|---|
| .. | ||
| display_driver.cpp | ||
| display_driver.h | ||
| shader.cpp | ||
| shader.h | ||
| window.cpp | ||
| window.h | ||