Browse Source

glasm: Fix EmitVertex's optimization

nce_cpp
ReinUsesLisp 5 years ago
committed by ameerj
parent
commit
b0b43d2a66
  1. 2
      src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp

2
src/shader_recompiler/backend/glasm/emit_glasm_not_implemented.cpp

@ -73,7 +73,7 @@ void EmitEpilogue(EmitContext& ctx) {
} }
void EmitEmitVertex(EmitContext& ctx, ScalarS32 stream) { void EmitEmitVertex(EmitContext& ctx, ScalarS32 stream) {
if (stream.type == Type::U32 && stream.imm_u32) {
if (stream.type == Type::U32 && stream.imm_u32 == 0) {
ctx.Add("EMIT;"); ctx.Add("EMIT;");
} else { } else {
ctx.Add("EMITS {};", stream); ctx.Add("EMITS {};", stream);

Loading…
Cancel
Save