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:
Michael Fabian 'Xaymar' Dirks 2021-11-27 11:24:16 +01:00
parent 292562b63e
commit 86cb224783
1 changed files with 2 additions and 2 deletions

View File

@ -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();