Changed: #825 Remove all warning when compiling Ryzom

This commit is contained in:
kervala 2010-08-01 09:53:45 +02:00
parent 6359d5c7a8
commit 546e510fba
3 changed files with 7 additions and 7 deletions

View file

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

View file

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

View file

@ -208,11 +208,12 @@ 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";
const char *errormsg = "Verify DLL existence";
#endif
nlwarning("Loading library %s failed: %s", libPath.c_str(), errormsg);
}