Don't cook quads if testing without GL

This commit is contained in:
David Vierra 2015-01-03 14:29:54 -10:00
parent 472f248063
commit d200e310ea

View File

@ -200,7 +200,8 @@ class TextureAtlas(object):
usedSize = sum(sum(width * height for _, _, _, width, height, _ in slot.textures) for slot in slots) * 4
log.info("Terrain atlas created for world %s (%d/%d kB)", util.displayName(self._filename), usedSize / 1024,
totalSize / 1024)
self.blockModels.cookQuads(self)
if self.overrideMaxSize is None:
self.blockModels.cookQuads(self)
#file("terrain-%sw-%sh.raw" % (atlasWidth, atlasHeight), "wb").write(texData.tostring())
#raise SystemExit