mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
gfx/shader: Clear render target before rendering
Accidentally left as a comment, this causes things like SMAA to freak out.
This commit is contained in:
parent
292562b63e
commit
86cb224783
1 changed files with 2 additions and 2 deletions
|
@ -508,9 +508,9 @@ void streamfx::gfx::shader::shader::render(gs_effect* effect)
|
||||||
|
|
||||||
auto op = _rt->render(width(), height());
|
auto op = _rt->render(width(), height());
|
||||||
|
|
||||||
|
vec4 zero = {0, 0, 0, 0};
|
||||||
|
gs_clear(GS_CLEAR_COLOR, &zero, 0, 0);
|
||||||
gs_ortho(0, 1, 0, 1, 0, 1);
|
gs_ortho(0, 1, 0, 1, 0, 1);
|
||||||
/*vec4 zero = {0, 0, 0, 0};
|
|
||||||
gs_clear(GS_CLEAR_COLOR, &zero, 0, 0);*/
|
|
||||||
|
|
||||||
// Update Blend State
|
// Update Blend State
|
||||||
gs_blend_state_push();
|
gs_blend_state_push();
|
||||||
|
|
Loading…
Reference in a new issue