mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 17:00:57 +01:00
b5e60ae1b0
When CreateRenderer fails, the GraphicsContext that was std::move'd into it is destroyed before the Scoped that was created to manage its currency. In that case, the GraphicsContext::Scoped will still call its destructor at the ending of the function. And because the context is destroyed, the Scoped will cause a crash as it attempts to call a destroyed object's DoneCurrent function. Since we know when the call would be invalid, call the Scoped's Cancel method. This prevents it from calling a method on a destroyed object. |
||
---|---|---|
.. | ||
audio_core | ||
common | ||
core | ||
input_common | ||
shader_recompiler | ||
tests | ||
video_core | ||
web_service | ||
yuzu | ||
yuzu_cmd | ||
.clang-format | ||
CMakeLists.txt |