From Alok Priyadarshi, build fix for gcc.

This commit is contained in:
Robert Osfield
2010-05-19 16:43:37 +00:00
parent 2996dc8244
commit 858d52364e

View File

@@ -75,7 +75,6 @@ void initGLES2ProcAddress()
ADD_FUNCTION(glDeleteTextures)
ADD_FUNCTION(glDepthFunc)
ADD_FUNCTION(glDepthMask)
ADD_FUNCTION(glDepthRangef)
ADD_FUNCTION(glDetachShader)
ADD_FUNCTION(glDisable)
@@ -205,8 +204,7 @@ void* GLStaticLibrary::getProcAddress(const char* procName)
}
GLProcAddressMap::const_iterator iter = sProcAddressMap.find(procName);
return iter != sProcAddressMap.end() ? iter->second : 0;
return iter != sProcAddressMap.end() ? reinterpret_cast<void*>(iter->second) : 0;
}
#endif // OSG_GLES2_LIBRARY_STATIC