mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 09:36:15 +00:00
Changed: #825 Remove all warning when compiling Ryzom
This commit is contained in:
parent
c6d7643b4b
commit
9275ce5175
4 changed files with 13 additions and 7 deletions
|
@ -71,7 +71,8 @@ struct TMessageRecord
|
||||||
{
|
{
|
||||||
stream.serial( s_event );
|
stream.serial( s_event );
|
||||||
Event = StringToEvent( s_event );
|
Event = StringToEvent( s_event );
|
||||||
stream.serialHex( (uint32&)SockId );
|
uint32 sockId = (uint32)SockId;
|
||||||
|
stream.serialHex( sockId );
|
||||||
stream.serial( len );
|
stream.serial( len );
|
||||||
stream.serialBuffer( Message.bufferToFill( len ), len );
|
stream.serialBuffer( Message.bufferToFill( len ), len );
|
||||||
}
|
}
|
||||||
|
@ -79,7 +80,9 @@ struct TMessageRecord
|
||||||
{
|
{
|
||||||
s_event = EventToString( Event );
|
s_event = EventToString( Event );
|
||||||
stream.serial( s_event );
|
stream.serial( s_event );
|
||||||
stream.serialHex( (uint32&)SockId );
|
uint32 sockId;
|
||||||
|
stream.serialHex( sockId );
|
||||||
|
SockId = (NLNET::TSockId)sockId;
|
||||||
len = Message.length();
|
len = Message.length();
|
||||||
stream.serial( len );
|
stream.serial( len );
|
||||||
stream.serialBuffer( const_cast<uint8*>(Message.buffer()), len ); // assumes the message contains plain text
|
stream.serialBuffer( const_cast<uint8*>(Message.buffer()), len ); // assumes the message contains plain text
|
||||||
|
|
|
@ -346,7 +346,6 @@ bool CDriverGL::setupDisplay()
|
||||||
for(uint i = 0; i < lines.size(); i++)
|
for(uint i = 0; i < lines.size(); i++)
|
||||||
nlinfo("3D: %s", lines[i].c_str());
|
nlinfo("3D: %s", lines[i].c_str());
|
||||||
|
|
||||||
//
|
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
NL3D::registerWGlExtensions (_Extensions, _hDC);
|
NL3D::registerWGlExtensions (_Extensions, _hDC);
|
||||||
#endif // ifdef NL_OS_WINDOWS
|
#endif // ifdef NL_OS_WINDOWS
|
||||||
|
@ -358,6 +357,7 @@ bool CDriverGL::setupDisplay()
|
||||||
nlwarning("Missing Required GL extension: GL_ARB_multitexture. Update your driver");
|
nlwarning("Missing Required GL extension: GL_ARB_multitexture. Update your driver");
|
||||||
throw EBadDisplay("Missing Required GL extension: GL_ARB_multitexture. Update your driver");
|
throw EBadDisplay("Missing Required GL extension: GL_ARB_multitexture. Update your driver");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!_Extensions.EXTTextureEnvCombine)
|
if(!_Extensions.EXTTextureEnvCombine)
|
||||||
{
|
{
|
||||||
nlwarning("Missing Important GL extension: GL_EXT_texture_env_combine => All envcombine are setup to GL_MODULATE!!!");
|
nlwarning("Missing Important GL extension: GL_EXT_texture_env_combine => All envcombine are setup to GL_MODULATE!!!");
|
||||||
|
@ -1017,7 +1017,7 @@ void CDriverGL::setupViewport (const class CViewport& viewport)
|
||||||
// Setup gl viewport
|
// Setup gl viewport
|
||||||
sint ix=(sint)((float)clientWidth*x+0.5f);
|
sint ix=(sint)((float)clientWidth*x+0.5f);
|
||||||
clamp (ix, 0, clientWidth);
|
clamp (ix, 0, clientWidth);
|
||||||
int iy=(int)((float)clientHeight*y+0.5f);
|
sint iy=(sint)((float)clientHeight*y+0.5f);
|
||||||
clamp (iy, 0, clientHeight);
|
clamp (iy, 0, clientHeight);
|
||||||
sint iwidth=(sint)((float)clientWidth*width+0.5f);
|
sint iwidth=(sint)((float)clientWidth*width+0.5f);
|
||||||
clamp (iwidth, 0, clientWidth-ix);
|
clamp (iwidth, 0, clientWidth-ix);
|
||||||
|
@ -1097,7 +1097,7 @@ void CDriverGL::setupScissor (const class CScissor& scissor)
|
||||||
// Setup gl scissor
|
// Setup gl scissor
|
||||||
sint ix0=(sint)floor((float)clientWidth * x + 0.5f);
|
sint ix0=(sint)floor((float)clientWidth * x + 0.5f);
|
||||||
clamp (ix0, 0, clientWidth);
|
clamp (ix0, 0, clientWidth);
|
||||||
int iy0=(int)floor((float)clientHeight* y + 0.5f);
|
sint iy0=(sint)floor((float)clientHeight* y + 0.5f);
|
||||||
clamp (iy0, 0, clientHeight);
|
clamp (iy0, 0, clientHeight);
|
||||||
|
|
||||||
sint ix1=(sint)floor((float)clientWidth * (x+width) + 0.5f );
|
sint ix1=(sint)floor((float)clientWidth * (x+width) + 0.5f );
|
||||||
|
@ -1112,8 +1112,6 @@ void CDriverGL::setupScissor (const class CScissor& scissor)
|
||||||
|
|
||||||
glScissor (ix0, iy0, iwidth, iheight);
|
glScissor (ix0, iy0, iwidth, iheight);
|
||||||
glEnable(GL_SCISSOR_TEST);
|
glEnable(GL_SCISSOR_TEST);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,3 +38,5 @@
|
||||||
#include "nel/misc/mem_stream.h"
|
#include "nel/misc/mem_stream.h"
|
||||||
#include "nel/misc/time_nl.h"
|
#include "nel/misc/time_nl.h"
|
||||||
#include "nel/misc/command.h"
|
#include "nel/misc/command.h"
|
||||||
|
|
||||||
|
#include "nel/3d/driver.h"
|
||||||
|
|
|
@ -46,3 +46,6 @@
|
||||||
#include "nel/misc/fast_mem.h"
|
#include "nel/misc/fast_mem.h"
|
||||||
#include "nel/misc/system_info.h"
|
#include "nel/misc/system_info.h"
|
||||||
#include "nel/misc/mem_displayer.h"
|
#include "nel/misc/mem_displayer.h"
|
||||||
|
#include "nel/misc/stream.h"
|
||||||
|
#include "nel/misc/path.h"
|
||||||
|
#include "nel/misc/string_common.h"
|
||||||
|
|
Loading…
Reference in a new issue