diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-24 09:10:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-24 09:10:02 +0000 |
commit | d7fa767dbc569bd6f48e01c619c4b6bcf1dbd892 (patch) | |
tree | 26c58791bb61988320666319e436d7db908f5b3e /slideshow | |
parent | 6908efa1441e80c483631b694ba0232cb6b7a113 (diff) |
cppcheck: Unused private function under certain ifdefs
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx b/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx index e2114ee0cffd..3da691f6bfae 100644 --- a/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx +++ b/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx @@ -36,10 +36,10 @@ namespace unx #include <GL/glxext.h> } -bool OGLShaders::cbInitialized = false; - #ifdef GL_VERSION_2_0 +bool OGLShaders::cbInitialized = false; + PFNGLCREATESHADERPROC OGLShaders::glCreateShader = NULL; PFNGLSHADERSOURCEPROC OGLShaders::glShaderSource = NULL; PFNGLCOMPILESHADERPROC OGLShaders::glCompileShader = NULL; diff --git a/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx b/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx index 2b1bd49374c9..7eff31329eec 100644 --- a/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx +++ b/slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx @@ -34,8 +34,11 @@ #include <GL/glext.h> class OGLShaders { + +#ifdef GL_VERSION_2_0 static bool Initialize(); static bool cbInitialized; +#endif public: |