diff options
Diffstat (limited to 'src/GameInitDispose.cpp')
-rw-r--r-- | src/GameInitDispose.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/GameInitDispose.cpp b/src/GameInitDispose.cpp index b791183..b791f74 100644 --- a/src/GameInitDispose.cpp +++ b/src/GameInitDispose.cpp @@ -2108,10 +2108,6 @@ void Game::InitGame() initialized=1; loadingscreenamount+=5; - //Sync to refresh rate - if(vblsync) - GLint swapInt = 1; - /* for(int i=0;i<sprites.howmanysprites;i++){ sprites.DeleteSprite(0); @@ -2299,9 +2295,12 @@ GLvoid Game::ReSizeGLScene(float fov, float near) Game::~Game() { + const GLuint textures[] { + personspritetextureptr, + deadpersonspritetextureptr, + scopetextureptr, + flaretextureptr, + }; + glDeleteTextures(4, textures); alDeleteSources(100, gSourceID); // delete sound sources - glDeleteTextures(1, (const GLuint*) personspritetextureptr); - glDeleteTextures(1, (const GLuint*) deadpersonspritetextureptr); - glDeleteTextures(1, (const GLuint*) scopetextureptr); - glDeleteTextures(1, (const GLuint*) flaretextureptr); } |