Skip to content

Commit f7cbbfd

Browse files
committed
Squashed 'mooflu.common/' changes from f6b2c41..cfe60d3
cfe60d3 Add reset to cube map. git-subtree-dir: mooflu.common git-subtree-split: cfe60d3048f0d01f660fa6017601df7f6512876a
1 parent 4a22bd9 commit f7cbbfd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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
}

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)