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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user