mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-08-06 03:35:36 +00:00
CLineRenderer: Silence -Wmaybe-uninitialized warning
We can just initialize maxTriVerts to zero to prevent warnings from occurring.
This commit is contained in:
parent
df4487bae8
commit
c37b3df27b
@ -29,7 +29,7 @@ CLineRenderer::CLineRenderer(boo::IGraphicsDataFactory::Context& ctx, EPrimitive
|
||||
}
|
||||
m_textured = bool(texture);
|
||||
|
||||
u32 maxTriVerts;
|
||||
u32 maxTriVerts = 0;
|
||||
switch (mode) {
|
||||
case EPrimitiveMode::Lines:
|
||||
case EPrimitiveMode::LineStrip:
|
||||
@ -59,7 +59,7 @@ CLineRenderer::CLineRenderer(EPrimitiveMode mode, u32 maxVerts, const boo::ObjTo
|
||||
}
|
||||
m_textured = bool(texture);
|
||||
|
||||
u32 maxTriVerts;
|
||||
u32 maxTriVerts = 0;
|
||||
switch (mode) {
|
||||
case EPrimitiveMode::Lines:
|
||||
case EPrimitiveMode::LineStrip:
|
||||
|
Loading…
x
Reference in New Issue
Block a user