Skip to content

Commit 045d96d

Browse files
committed
Merge commit 'f7cbbfdffb2ee015d077331e658081b6717c3b1a' into main
2 parents f1f25b4 + f7cbbfd commit 045d96d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mooflu.common/utilsgl/GLTextureCubeMap.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ void GLTextureCubeMap::init(void) {
9494
#endif
9595
}
9696

97-
void GLTextureCubeMap::reload(void) {
97+
void GLTextureCubeMap::reset(void) {
9898
TextureManagerS::instance()->removeTexture(this);
99+
}
100+
101+
void GLTextureCubeMap::reload(void) {
99102
init();
100103
}

mooflu.common/utilsgl/GLTextureCubeMap.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class GLTextureCubeMap : public GLTextureI {
4343

4444
void unbind(void) { glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, 0); }
4545

46+
void reset(void);
4647
void reload(void);
4748

4849
private:

0 commit comments

Comments
 (0)