Manually delete an IImage *

Ref couting doesnt seem to work on this object.
This commit is contained in:
vlj
2014-08-04 01:16:41 +02:00
parent 6c71334cda
commit 7f44467f67

View File

@@ -467,7 +467,7 @@ void IrrDriver::generateDiffuseCoefficients()
SphericalHarmonicsTextures[idx]->unlock();
image->copyToScaling(sh_rgba[i], sh_w, sh_h);
image->drop();
delete image;
}
testSH(sh_rgba, sh_w, sh_h, blueSHCoeff, greenSHCoeff, redSHCoeff);