mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Changed: #825 Remove all warnings when compiling Ryzom
This commit is contained in:
parent
2a7effb835
commit
9b2b51b6a5
2 changed files with 5 additions and 2 deletions
|
@ -1219,7 +1219,7 @@ IVertexBufferHardGL *CVertexArrayRangeARB::createVBHardGL(uint size, CVertexBuff
|
|||
nglGenBuffersARB(1, &vertexBufferID);
|
||||
#endif
|
||||
|
||||
if (glGetError() != GL_NO_ERROR) return false;
|
||||
if (glGetError() != GL_NO_ERROR) return NULL;
|
||||
_Driver->_DriverGLStates.forceBindARBVertexBuffer(vertexBufferID);
|
||||
switch(_VBType)
|
||||
{
|
||||
|
@ -1256,7 +1256,7 @@ IVertexBufferHardGL *CVertexArrayRangeARB::createVBHardGL(uint size, CVertexBuff
|
|||
nglDeleteBuffersARB(1, &vertexBufferID);
|
||||
#endif
|
||||
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
CVertexBufferHardARB *newVbHard= new CVertexBufferHardARB(_Driver, vb);
|
||||
newVbHard->initGL(vertexBufferID, this, _VBType);
|
||||
|
|
|
@ -346,9 +346,12 @@ bool CDriverGL::init (uint windowIcon, emptyProc exitFunc)
|
|||
#elif defined(NL_OS_MAC)
|
||||
|
||||
// nothing to do
|
||||
nlunreferenced(windowIcon);
|
||||
|
||||
#elif defined (NL_OS_UNIX)
|
||||
|
||||
nlunreferenced(windowIcon);
|
||||
|
||||
_dpy = XOpenDisplay(NULL);
|
||||
|
||||
if (_dpy == NULL)
|
||||
|
|
Loading…
Reference in a new issue