diff --git a/examples/13-stencil/stencil.cpp b/examples/13-stencil/stencil.cpp index e950f9332..737c81fd0 100644 --- a/examples/13-stencil/stencil.cpp +++ b/examples/13-stencil/stencil.cpp @@ -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(); } diff --git a/examples/14-shadowvolumes/shadowvolumes.cpp b/examples/14-shadowvolumes/shadowvolumes.cpp index f298fc4f7..fa93a6b58 100644 --- a/examples/14-shadowvolumes/shadowvolumes.cpp +++ b/examples/14-shadowvolumes/shadowvolumes.cpp @@ -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(); }