Improve NPOT texture support