From 38454372762482f59b6601fbce700804d405972f Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 10 Jun 2014 21:06:36 -0700 Subject: [PATCH] Fix assert to allow 16 fetchers. --- src/xenia/gpu/shader_resource.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/gpu/shader_resource.cc b/src/xenia/gpu/shader_resource.cc index 9fbcbf2bb..07b64efbe 100644 --- a/src/xenia/gpu/shader_resource.cc +++ b/src/xenia/gpu/shader_resource.cc @@ -188,7 +188,7 @@ void ShaderResource::GatherVertexFetch(const instr_fetch_vtx_t* vtx) { auto& desc = inputs.descs[n]; auto& info = desc.info; if (desc.fetch_slot == fetch_slot) { - XEASSERT(info.element_count + 1 < XECOUNT(info.elements)); + XEASSERT(info.element_count <= XECOUNT(info.elements)); // It may not hold that all strides are equal, but I hope it does. XEASSERT(!vtx->stride || info.stride_words == vtx->stride); el = &info.elements[info.element_count++];