diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-11 20:03:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-11 20:03:02 +0300 |
commit | 91fa2122a536770924bb2819bec4b79e76393d08 (patch) | |
tree | 93c0e191249b2158cf92a564630a4b16e9ccdcaa /src/graphicsmanager.cpp | |
parent | 1a524dc9468fe532bc060a73ef736a68687aadca (diff) | |
download | plus-91fa2122a536770924bb2819bec4b79e76393d08.tar.gz plus-91fa2122a536770924bb2819bec4b79e76393d08.tar.bz2 plus-91fa2122a536770924bb2819bec4b79e76393d08.tar.xz plus-91fa2122a536770924bb2819bec4b79e76393d08.zip |
Fix code style and small perfomance issues.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index 66502434d..2d2740023 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -337,10 +337,9 @@ void GraphicsManager::updateTextureFormat() || supportExtension("3DFX_texture_compression_FXT1")) { GLint num; - GLint *formats = nullptr; glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &num); logger->log("support %d compressed formats", num); - formats = new GLint[num > 10 ? num : 10]; + GLint *formats = new GLint[num > 10 ? num : 10]; glGetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS, formats); for (int f = 0; f < num; f ++) { |