Minor correction to mipmaping code