Skip to content

Commit

Permalink
Merge commit 'f7cbbfdffb2ee015d077331e658081b6717c3b1a' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mooflu committed Oct 28, 2023
2 parents f1f25b4 + f7cbbfd commit 045d96d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mooflu.common/utilsgl/GLTextureCubeMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ void GLTextureCubeMap::init(void) {
#endif
}

void GLTextureCubeMap::reload(void) {
void GLTextureCubeMap::reset(void) {
TextureManagerS::instance()->removeTexture(this);
}

void GLTextureCubeMap::reload(void) {
init();
}
1 change: 1 addition & 0 deletions mooflu.common/utilsgl/GLTextureCubeMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class GLTextureCubeMap : public GLTextureI {

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

void reset(void);
void reload(void);

private:
Expand Down

0 comments on commit 045d96d

Please sign in to comment.