libobs: Don't try to keep rendering if a texture wasn't allocated

Fixes issues with invalid textures causing huge output or large black
regions to be rendered.
上级 ccf36b68
......@@ -99,6 +99,9 @@ bool gs_texrender_begin(gs_texrender_t *texrender, uint32_t cx, uint32_t cy)
if (!texrender_resetbuffer(texrender, cx, cy))
return false;
if (!texrender->target)
return false;
gs_viewport_push();
gs_projection_push();
gs_matrix_push();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册