Fix #2824, gcc 12.1 build issues (#2825)

* Update shadowvolumes.cpp

* Update stencil.cpp
This commit is contained in:
SnapperTT 2022-06-21 01:10:10 +10:00 committed by GitHub
parent a153458735
commit a2268940bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -609,6 +609,9 @@ struct Group
{
m_vbh.idx = bgfx::kInvalidHandle;
m_ibh.idx = bgfx::kInvalidHandle;
m_sphere={};
m_aabb={};
m_obb={};
m_prims.clear();
}

View File

@ -764,6 +764,10 @@ struct Group
m_numEdges = 0;
m_edges = NULL;
m_edgePlanesUnalignedPtr = NULL;
m_edgePlanes = NULL;
m_aabb={};
m_sphere={};
m_obb={};
m_prims.clear();
}