Fix compilation without NEW_TEXTURES