mirror of https://github.com/Xaymar/obs-StreamFX
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
|
@ -508,9 +508,9 @@ void streamfx::gfx::shader::shader::render(gs_effect* effect)
|
|||
|
||||
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);
|
||||
/*vec4 zero = {0, 0, 0, 0};
|
||||
gs_clear(GS_CLEAR_COLOR, &zero, 0, 0);*/
|
||||
|
||||
// Update Blend State
|
||||
gs_blend_state_push();
|
||||
|
|
Loading…
Reference in New Issue