diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-07-26 12:00:06 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-07-26 12:00:06 +0700 |
| commit | 02cacabff7c8301412faaaeccdbf67cd2bbc38c0 (patch) | |
| tree | 18dcc35ce477dd93b9767697156b5c57f92f420b /src/GameInitDispose.cpp | |
| parent | 2f439764f5e115c37034cf9d4a8d7f39f696f30f (diff) | |
| download | blackshades-02cacabff7c8301412faaaeccdbf67cd2bbc38c0.tar.gz | |
Make g++ and zig c++ happy
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); } |
