Fixed Coverity reported issue.

CID 11588: Resource leak (RESOURCE_LEAK)
Calling allocation function "operator new[](unsigned long long)".
Assigning: "dataPtr" = storage returned from "new unsigned char[newTotalSize]".
This commit is contained in:
Robert Osfield
2011-04-27 16:02:10 +00:00
parent 501008f256
commit 63ee77a63d

View File

@@ -2255,7 +2255,6 @@ void Texture::applyTexImage2D_subload(State& state, GLenum target, const Image*
{
//OSG_WARN<<"Warning:: cannot subload mip mapped texture from non mipmapped image."<<std::endl;
applyTexImage2D_load(state, target, image, inwidth, inheight,numMipmapLevels);
return;
}
}