Re-fixed, Visual mode: in some cases some D3D textures were not disposed after closing a map, eventually resulting in E_OUTOFMEMORY crash.

Fixed, Preferences window: some folding settings were not applied in the Script Editor preview control.
Changed, Visual mode: increased z-buffer depth to 24 bits. Z-fighting among far away but close to each other surfaces should be less noticeable now.
This commit is contained in:
MaxED 2016-02-06 00:04:02 +00:00
parent 7691ec087e
commit 3b90d100ff
4 changed files with 34 additions and 12 deletions

View file

@ -462,6 +462,10 @@ namespace CodeImp.DoomBuilder.Data
if((width != texture.GetLevelDescription(0).Width) || (height != texture.GetLevelDescription(0).Height))
throw new Exception("Could not create a texture with the same size as the image.");
}
#if DEBUG
texture.Tag = name; //mxd. Helps with tracking undisposed resources...
#endif
}
}
}