mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
uninitialized variables-renderinstance
(cherry picked from commit dcbc22bf8450250f192ae56b303affd760f63db1)
This commit is contained in:
parent
522578074c
commit
8aa03a4ac9
3 changed files with 15 additions and 4 deletions
|
|
@ -213,6 +213,7 @@ RenderProbeMgr::RenderProbeMgr()
|
|||
smProbeManager = this;
|
||||
|
||||
mCubeMapCount = 0;
|
||||
mCubeSlotCount = PROBE_ARRAY_SLOT_BUFFER_SIZE;
|
||||
|
||||
for (U32 i = 0; i < PROBE_MAX_COUNT; i++)
|
||||
{
|
||||
|
|
@ -222,7 +223,17 @@ RenderProbeMgr::RenderProbeMgr()
|
|||
|
||||
RenderProbeMgr::RenderProbeMgr(RenderInstType riType, F32 renderOrder, F32 processAddOrder)
|
||||
: RenderBinManager(riType, renderOrder, processAddOrder)
|
||||
{
|
||||
{
|
||||
mCubeMapCount = 0;
|
||||
dMemset(mCubeMapSlots, false, sizeof(mCubeMapSlots));
|
||||
mCubeSlotCount = PROBE_ARRAY_SLOT_BUFFER_SIZE;
|
||||
mDefaultSkyLight = nullptr;
|
||||
mEffectiveProbeCount = 0;
|
||||
mHasSkylight = false;
|
||||
mSkylightCubemapIdx = -1;
|
||||
mLastConstants = nullptr;
|
||||
mMipCount = 0;
|
||||
mProbesDirty = false;
|
||||
}
|
||||
|
||||
RenderProbeMgr::~RenderProbeMgr()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue