gl_shader_decompiler: Fix MrgH0 decompilation

GLSL decompilation for HMergeH0 was wrong. This addresses that issue.
This commit is contained in:
ReinUsesLisp 2019-04-15 19:15:55 -03:00
parent 64613db605
commit abcbcb1b2a

View File

@ -1078,8 +1078,8 @@ private:
} }
std::string HMergeH0(Operation operation) { std::string HMergeH0(Operation operation) {
return "fromHalf2(vec2(toHalf2(" + Visit(operation[0]) + ")[1], toHalf2(" + return "fromHalf2(vec2(toHalf2(" + Visit(operation[1]) + ")[0], toHalf2(" +
Visit(operation[1]) + ")[0]))"; Visit(operation[0]) + ")[1]))";
} }
std::string HMergeH1(Operation operation) { std::string HMergeH1(Operation operation) {