浏览代码

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)