Fixed texture atlas capacity expansion.