Merge pull request #216 from lioncash/line

CLineRenderer: Silence -Wmaybe-uninitialized warning
This commit is contained in:
Phillip Stephens 2020-03-13 15:30:14 -07:00 committed by GitHub
commit 0c17e4fdd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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: