- quick patches, attempt at fixing a few crashes
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-03-13 08:48:40 +00:00
parent 8a4797a06a
commit fa0d98988d
5 changed files with 15 additions and 11 deletions

View File

@@ -152,12 +152,14 @@ WTrackedQuad * WCachedTexture::GetTrackedQuad(float offX, float offY, float widt
if(!quad){
quad = NEW JQuad(texture,offX,offY,width,height);
/*
There's a risk this erases the texture calling the quad creation.... Erwan 2010/03/13
if(!quad) {
//Probably out of memory. Try again.
resources.Cleanup();
quad = NEW JQuad(texture,offX,offY,width,height);
}
*/
if(!quad){
if(allocated && tq)
SAFE_DELETE(tq);