Skip to content

Commit

Permalink
Restore original getMaxMipCount
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm committed Dec 29, 2023
1 parent cf9e332 commit 00c47a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/MaterialXRender/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ unsigned int Image::getBaseStride() const

unsigned int Image::getMaxMipCount() const
{
return (unsigned int) std::log2(std::min(_width, _height)) + 1;
return (unsigned int) std::log2(std::max(_width, _height)) + 1;
}

void Image::setTexelColor(unsigned int x, unsigned int y, const Color4& color)
Expand Down

0 comments on commit 00c47a6

Please sign in to comment.