2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 12:27:43 +00:00

Fix maxVerts < 2 case

This commit is contained in:
2016-02-27 17:35:45 -08:00
parent 37da86838d
commit 97c8af9aa2
3 changed files with 7 additions and 2 deletions

View File

@@ -426,8 +426,9 @@ CElementGen::CElementGen(const TToken<CGenDescription>& gen,
boo::ITexture* tex = nullptr;
if (texr)
tex = texr->GetValueTexture(0).GetObj()->GetBooTexture();
int maxVerts = (x70_MAXP == 0 ? 256 : x70_MAXP);
m_lineRenderer.reset(new CLineRenderer(CLineRenderer::EPrimitiveMode::Lines,
x70_MAXP * 2, tex, x224_26_AAPH));
maxVerts * 2, tex, x224_26_AAPH));
}
else
{