mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
gs-rendertarget: Don't ignore failed creation of render target
This commit is contained in:
parent
04ddf76920
commit
bf35b54957
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,9 @@ gs::rendertarget::rendertarget(gs_color_format colorFormat, gs_zstencil_format z
|
|||
obs_enter_graphics();
|
||||
render_target = gs_texrender_create(colorFormat, zsFormat);
|
||||
obs_leave_graphics();
|
||||
if (!render_target) {
|
||||
throw std::runtime_error("Failed to create render target.");
|
||||
}
|
||||
}
|
||||
|
||||
gs::rendertarget_op gs::rendertarget::render(uint32_t width, uint32_t height)
|
||||
|
|
Loading…
Reference in a new issue