cppcheck: Unused private function under certain ifdefs

This commit is contained in:
Caolán McNamara 2010-11-24 09:10:02 +00:00
parent 6908efa144
commit d7fa767dbc
2 changed files with 5 additions and 2 deletions

View file

@ -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;

View file

@ -34,8 +34,11 @@
#include <GL/glext.h>
class OGLShaders {
#ifdef GL_VERSION_2_0
static bool Initialize();
static bool cbInitialized;
#endif
public: