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 | |
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')
-rw-r--r-- | backends/graphics/opengl/glerrorcheck.cpp | 1 | ||||
-rw-r--r-- | backends/graphics/opengl/gltexture.cpp | 6 | ||||
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/backends/graphics/opengl/glerrorcheck.cpp b/backends/graphics/opengl/glerrorcheck.cpp index ee177f0ac5..8d5dcf49da 100644 --- a/backends/graphics/opengl/glerrorcheck.cpp +++ b/backends/graphics/opengl/glerrorcheck.cpp @@ -55,6 +55,7 @@ static const char *getGlErrStr(GLenum error) { case GL_OUT_OF_MEMORY: return "GL_OUT_OF_MEMORY"; } + // FIXME: Convert to use Common::String::format() static char buf[40]; snprintf(buf, sizeof(buf), "(Unknown GL error code 0x%x)", error); return buf; 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) diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index 2acdffa3b0..f826da48fe 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -405,11 +405,9 @@ void OpenGLGraphicsManager::setShakePos(int shakeOffset) { } void OpenGLGraphicsManager::setFocusRectangle(const Common::Rect& rect) { - } void OpenGLGraphicsManager::clearFocusRectangle() { - } // |