From 3995b2d8f7be017e68c89730e467dc32455a2b14 Mon Sep 17 00:00:00 2001 From: Joost Peters Date: Fri, 16 Jul 2010 22:20:21 +0000 Subject: change post-increment to pre-increment in return value of nextHighest2(), as some compilers will not return the incremented value otherwise svn-id: r50946 --- backends/graphics/opengl/gltexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/graphics/opengl/gltexture.cpp b/backends/graphics/opengl/gltexture.cpp index eada261ca2..0803c74f9a 100644 --- a/backends/graphics/opengl/gltexture.cpp +++ b/backends/graphics/opengl/gltexture.cpp @@ -50,7 +50,7 @@ static GLuint nextHigher2(GLuint v) { v |= v >> 4; v |= v >> 8; v |= v >> 16; - return v++; + return ++v; } void GLTexture::initGLExtensions() { -- cgit v1.2.3