Commit 249dc177 authored by Jan Möbius's avatar Jan Möbius
Browse files

More uninitialized



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13379 383ad7c9-94d9-4d36-a494-682f7c89f535
parent eaec64a2
......@@ -55,6 +55,22 @@ DepthPeelingPlugin::DepthPeelingPlugin() :
numLights_(0)
{
for (unsigned int i = 0; i < 16; ++i)
lightTypes_[i] = LIGHTTYPE_POINT;
for (unsigned int i = 0; i < PEEL_NUM_COMBINATIONS; ++i)
peelProgs_[i] = 0;
for (unsigned int i = 0; i < PEEL_NUM_COMBINATIONS*3; ++i)
peelShaders_[i] = 0;
for (unsigned int i = 0; i < 8; ++i)
blendShaders_[i] = 0;
for (unsigned int i = 0; i < 4; ++i)
blendDualPeelProg_[i] = 0;
}
DepthPeelingPlugin::~DepthPeelingPlugin() {
......
......@@ -52,9 +52,13 @@ const unsigned int SSAOPlugin::numSamples_ = 32;
SSAOPlugin::SSAOPlugin() :
randomVecTex_(0)
randomVecTex_(0)
{
for (unsigned int i = 0; i < 10; ++i)
shaders_[i] = 0;
for (unsigned int i = 0; i < 6; ++i)
programs_[i] = 0;
}
SSAOPlugin::~SSAOPlugin()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment