Improve texture format correctness