Skip to content

Commit

Permalink
D3D9: Texture - fix generation of Cube mipmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Dec 8, 2021
1 parent 9589c59 commit 91b7639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RenderSystems/Direct3D9/src/OgreD3D9Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ namespace Ogre
D3D9HardwarePixelBuffer* currPixelBuffer = GETLEVEL(face, mip);


if (mip == 0 && mNumRequestedMipmaps != 0 && (mUsage & TU_AUTOMIPMAP))
if (mip == 0 && mNumRequestedMipmaps != 0 && (mUsage & TU_AUTOMIPMAP) && face == 5)
currPixelBuffer->_setMipmapping(true, mMipmapsHardwareGenerated);

currPixelBuffer->bind(d3d9Device, surface, textureResources->pFSAASurface,
Expand Down

0 comments on commit 91b7639

Please sign in to comment.