diff options
author | Max Horn | 2010-11-28 18:10:40 +0000 |
---|---|---|
committer | Max Horn | 2010-11-28 18:10:40 +0000 |
commit | ee4510aed487671866705542b0b2a9180aebf651 (patch) | |
tree | 552b96163fb7b20d098988e92c315ce8eb6bc49f /backends/graphics/opengl/gltexture.cpp | |
parent | 8399232a437d74a15b3675ad0f349001b87a6480 (diff) | |
download | scummvm-rg350-ee4510aed487671866705542b0b2a9180aebf651.tar.gz scummvm-rg350-ee4510aed487671866705542b0b2a9180aebf651.tar.bz2 scummvm-rg350-ee4510aed487671866705542b0b2a9180aebf651.zip |
OPENGL: Modify source files to force recompilation
svn-id: r54542
Diffstat (limited to 'backends/graphics/opengl/gltexture.cpp')
-rw-r--r-- | backends/graphics/opengl/gltexture.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/graphics/opengl/gltexture.cpp b/backends/graphics/opengl/gltexture.cpp index e43cbe2266..650f12b92c 100644 --- a/backends/graphics/opengl/gltexture.cpp +++ b/backends/graphics/opengl/gltexture.cpp @@ -35,6 +35,7 @@ // Supported GL extensions static bool npot_supported = false; +static bool glext_inited = false; /*static inline GLint xdiv(int numerator, int denominator) { assert(numerator < (1 << 16)); @@ -54,10 +55,9 @@ static GLuint nextHigher2(GLuint v) { } void GLTexture::initGLExtensions() { - static bool inited = false; // Return if extensions were already checked - if (inited) + if (glext_inited) return; // Get a string with all extensions @@ -72,7 +72,7 @@ void GLTexture::initGLExtensions() { npot_supported = true; } - inited = true; + glext_inited = true; } GLTexture::GLTexture(byte bpp, GLenum internalFormat, GLenum format, GLenum type) |