From 359856d770149ff0cef606bec2e834528237814e Mon Sep 17 00:00:00 2001 From: Lander Gallastegi Date: Tue, 22 Apr 2025 18:23:45 +0200 Subject: [PATCH] Fix incorrect assert --- .../backend/spirv/emit_spirv_context_get_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp index 47ac5ce03..ff1bb2454 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp @@ -175,7 +175,7 @@ Id EmitReadConst(EmitContext& ctx, IR::Inst* inst, Id addr, Id offset) { return ctx.u32_zero_value; } else { const auto& srt_flatbuf = ctx.buffers[ctx.flatbuf_index]; - ASSERT(srt_flatbuf.binding >= 0 > 0 && srt_flatbuf.buffer_type == BufferType::Flatbuf); + ASSERT(srt_flatbuf.binding >= && srt_flatbuf.buffer_type == BufferType::Flatbuf); const auto [id, pointer_type] = srt_flatbuf[PointerType::U32]; const Id ptr{ctx.OpAccessChain(pointer_type, id, ctx.u32_zero_value, ctx.ConstU32(flatbuf_off_dw))};