summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-11 20:03:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-11 20:03:02 +0300
commit91fa2122a536770924bb2819bec4b79e76393d08 (patch)
tree93c0e191249b2158cf92a564630a4b16e9ccdcaa /src/graphicsmanager.cpp
parent1a524dc9468fe532bc060a73ef736a68687aadca (diff)
downloadmanaplus-91fa2122a536770924bb2819bec4b79e76393d08.tar.gz
manaplus-91fa2122a536770924bb2819bec4b79e76393d08.tar.bz2
manaplus-91fa2122a536770924bb2819bec4b79e76393d08.tar.xz
manaplus-91fa2122a536770924bb2819bec4b79e76393d08.zip
Fix code style and small perfomance issues.
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp3
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 ++)
{