summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/OGLTrans/OGLTrans_Shaders.cxx4
-rw-r--r--slideshow/source/engine/OGLTrans/OGLTrans_Shaders.hxx3
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: