gl_arb_decompiler: Execute BAR even when inside control flow

Unlike GLSL, GLASM allows us to call BAR inside control flow.

- Fixes graphical artifacts in Paper Mario.
This commit is contained in:
ReinUsesLisp 2020-07-16 16:05:52 -03:00
parent 263200f982
commit 88e57b13e0

View file

@ -2044,10 +2044,6 @@ std::string ARBDecompiler::ShuffleIndexed(Operation operation) {
} }
std::string ARBDecompiler::Barrier(Operation) { std::string ARBDecompiler::Barrier(Operation) {
if (!ir.IsDecompiled()) {
LOG_ERROR(Render_OpenGL, "BAR used but shader is not decompiled");
return {};
}
AddLine("BAR;"); AddLine("BAR;");
return {}; return {};
} }