fix for no-mipmaps case