ソースを参照

glGenerateMipmap on uncompressed cubemap

Anis 10 年 前
コミット
ca04726ad6
1 ファイル変更2 行追加0 行削除
  1. 2 0
      Engine/source/gfx/gl/gfxGLCubemap.cpp

+ 2 - 0
Engine/source/gfx/gl/gfxGLCubemap.cpp

@@ -89,6 +89,8 @@ void GFXGLCubemap::fillCubeTextures(GFXTexHandle* faces)
          0, GFXGLTextureFormat[faceFormat], GFXGLTextureType[faceFormat], buf);
       delete[] buf;
    }
+   
+   glGenerateMipmap(GL_TEXTURE_CUBE_MAP);
 }
 
 void GFXGLCubemap::initStatic(GFXTexHandle* faces)