Fixing bad assert.

This commit is contained in:
Ben Vanik 2015-02-10 22:04:16 -08:00
parent 486d0beea3
commit 94b8abd816
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ void Shader::GatherTextureFetch(const instr_fetch_tex_t* tex) {
assert_true(tex->const_idx < 0x1F); 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++]; auto& input = sampler_inputs_.descs[sampler_inputs_.count++];
input.input_index = sampler_inputs_.count - 1; input.input_index = sampler_inputs_.count - 1;
input.fetch_slot = tex->const_idx & 0xF; // ?????????????????????????????? input.fetch_slot = tex->const_idx & 0xF; // ??????????????????????????????