Fixed a bug in NPOT texture support detection.