cppcheck: Unused private function under certain ifdefs
This commit is contained in:
parent
6908efa144
commit
d7fa767dbc
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -34,8 +34,11 @@
|
|||
#include <GL/glext.h>
|
||||
|
||||
class OGLShaders {
|
||||
|
||||
#ifdef GL_VERSION_2_0
|
||||
static bool Initialize();
|
||||
static bool cbInitialized;
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Reference in a new issue