Define textureWidthMax in a different place.

[1553]