Changed: #825 Remove all warning when compiling Ryzom

hg/feature/sound
kervala 15 years ago
parent 65647fecbb
commit 540e24b7b6

@ -397,11 +397,11 @@ void CDriverGLStates::alphaFunc(float threshold)
// ***************************************************************************
void CDriverGLStates::stencilFunc(GLenum stencilFunc, GLint ref, GLuint mask)
void CDriverGLStates::stencilFunc(GLenum func, GLint ref, GLuint mask)
{
H_AUTO_OGL(CDriverGLStates_stencilFunc)
#ifndef NL3D_GLSTATE_DISABLE_CACHE
if((stencilFunc!=_CurStencilFunc) || (ref!=_CurStencilRef) || (mask!=_CurStencilMask))
if((func!=_CurStencilFunc) || (ref!=_CurStencilRef) || (mask!=_CurStencilMask))
#endif
{
// new state

@ -1939,8 +1939,7 @@ bool CDriverGL::getRenderTargetSize (uint32 &width, uint32 &height)
}
else
{
width = _WindowWidth;
height = _WindowHeight;
getWindowSize(width, height);
}
return false;

@ -208,9 +208,10 @@ bool CLibrary::loadLibrary(const std::string &libName, bool addNelDecoration, bo
_LibHandle = nlLoadLibrary(libPath);
_LibFileName = libPath;
// MTR: some new error handling. Just logs if it couldn't load the handle.
if(_LibHandle == NULL) {
if(_LibHandle == NULL)
{
#ifdef NL_OS_UNIX
char *errormsg=dlerror();
const char *errormsg = dlerror();
#else
const char *errormsg = "Verify DLL existence";
#endif

Loading…
Cancel
Save