I think this is only used for texture dumping, but this resolves some failed assertions and glitchy results.