From Chris Hanson, build fixes for Solaris-64

This commit is contained in:
Robert Osfield
2010-04-15 11:41:37 +00:00
parent 72e6867679
commit 7db9f18619
3 changed files with 10 additions and 10 deletions

View File

@@ -500,7 +500,7 @@ void Shader::PerContextShader::compileShader(osg::State& state)
}
GLint compiled = GL_FALSE;
const char* sourceText = source.c_str();
const GLchar* sourceText = reinterpret_cast<const GLchar*>(source.c_str());
_extensions->glShaderSource( _glShaderHandle, 1, &sourceText, NULL );
_extensions->glCompileShader( _glShaderHandle );
_extensions->glGetShaderiv( _glShaderHandle, GL_COMPILE_STATUS, &compiled );