From 94b8abd8160fda10ed286ef137c8a673b621824c Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 10 Feb 2015 22:04:16 -0800 Subject: [PATCH] Fixing bad assert. --- src/xenia/gpu/shader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/gpu/shader.cc b/src/xenia/gpu/shader.cc index 85f41fc4f..3903facd1 100644 --- a/src/xenia/gpu/shader.cc +++ b/src/xenia/gpu/shader.cc @@ -264,7 +264,7 @@ void Shader::GatherTextureFetch(const instr_fetch_tex_t* tex) { assert_true(tex->const_idx < 0x1F); - assert_true(sampler_inputs_.count + 1 < poly::countof(sampler_inputs_.descs)); + assert_true(sampler_inputs_.count + 1 <= poly::countof(sampler_inputs_.descs)); auto& input = sampler_inputs_.descs[sampler_inputs_.count++]; input.input_index = sampler_inputs_.count - 1; input.fetch_slot = tex->const_idx & 0xF; // ??????????????????????????????