mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-12 02:09:52 +00:00
Changed: #825 Remove all warning when compiling Ryzom
This commit is contained in:
parent
bcebf28280
commit
dde571ce4b
1 changed files with 4 additions and 22 deletions
|
@ -969,18 +969,9 @@ void CDriverGL::setupViewport (const class CViewport& viewport)
|
||||||
|
|
||||||
if (_win == EmptyWindow) return;
|
if (_win == EmptyWindow) return;
|
||||||
|
|
||||||
#ifdef NL_MAC_NATIVE
|
|
||||||
|
|
||||||
uint32 clientWidth, clientHeight;
|
|
||||||
NL3D::MAC::getWindowSize(_win, clientWidth, clientHeight);
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
// Setup gl viewport
|
// Setup gl viewport
|
||||||
sint clientWidth = _WindowWidth;
|
uint32 clientWidth, clientHeight;
|
||||||
sint clientHeight = _WindowHeight;
|
getWindowSize(clientWidth, clientHeight);
|
||||||
|
|
||||||
#endif // NL_MAC_NATIVE
|
|
||||||
|
|
||||||
// Backup the viewport
|
// Backup the viewport
|
||||||
_CurrViewport = viewport;
|
_CurrViewport = viewport;
|
||||||
|
@ -1033,18 +1024,9 @@ void CDriverGL::setupScissor (const class CScissor& scissor)
|
||||||
|
|
||||||
if (_win == EmptyWindow) return;
|
if (_win == EmptyWindow) return;
|
||||||
|
|
||||||
#ifdef NL_MAC_NATIVE
|
|
||||||
|
|
||||||
uint32 clientWidth, clientHeight;
|
|
||||||
NL3D::MAC::getWindowSize(_win, clientWidth, clientHeight);
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
// Setup gl viewport
|
// Setup gl viewport
|
||||||
sint clientWidth = _WindowWidth;
|
uint32 clientWidth, clientHeight;
|
||||||
sint clientHeight = _WindowHeight;
|
getWindowSize(clientWidth, clientHeight);
|
||||||
|
|
||||||
#endif // NL_MAC_NATIVE
|
|
||||||
|
|
||||||
// Backup the scissor
|
// Backup the scissor
|
||||||
_CurrScissor= scissor;
|
_CurrScissor= scissor;
|
||||||
|
|
Loading…
Reference in a new issue