mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Fix off-by-one in mip levels for OpenGL
This commit is contained in:
parent
3c165b7d45
commit
9caa08b7f0
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
inline U32 getMaxMipmaps(U32 width, U32 height, U32 depth)
|
inline U32 getMaxMipmaps(U32 width, U32 height, U32 depth)
|
||||||
{
|
{
|
||||||
return getMax( getBinLog2(depth), getMax(getBinLog2(width), getBinLog2(height)));
|
return getMax( getBinLog2(depth), getMax(getBinLog2(width), getBinLog2(height))) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline GLenum minificationFilter(U32 minFilter, U32 mipFilter, U32 /*mipLevels*/)
|
inline GLenum minificationFilter(U32 minFilter, U32 mipFilter, U32 /*mipLevels*/)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue