From 90fa3ed97c13d336252a6946e3aa00e3d7ff0f55 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 30 Oct 2010 17:47:47 +0200 Subject: [PATCH] Changed: #825 Remove all warning when compiling Ryzom --- code/nel/include/nel/misc/config_file.h | 2 +- .../src/3d/driver/opengl/driver_opengl.cpp | 38 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/code/nel/include/nel/misc/config_file.h b/code/nel/include/nel/misc/config_file.h index 159a76f6d..248afacc8 100644 --- a/code/nel/include/nel/misc/config_file.h +++ b/code/nel/include/nel/misc/config_file.h @@ -124,7 +124,7 @@ public: { public: - CVar () : Type(T_UNKNOWN), Root(false), FromLocalFile(true), SaveWrap(6) {} + CVar () : Type(T_UNKNOWN), Root(false), Comp(false), FromLocalFile(true), SaveWrap(6) {} /// \name Access to the variable content. //@{ diff --git a/code/nel/src/3d/driver/opengl/driver_opengl.cpp b/code/nel/src/3d/driver/opengl/driver_opengl.cpp index d9dcf9a7c..207d148cb 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl.cpp @@ -183,7 +183,7 @@ CDriverGL::CDriverGL() #elif defined(NL_OS_MAC) - _ctx = nil; + _ctx = nil; _glView = nil; _backBufferHeight = 0; @@ -1672,12 +1672,12 @@ ATTRIB bump0TexCoord = fragment.texcoord[0]; \n\ ATTRIB bump1TexCoord = fragment.texcoord[1]; \n\ ATTRIB envMapTexCoord = fragment.texcoord[2]; \n\ OUTPUT oCol = result.color; \n\ -TEMP bmValue; \n\ +TEMP bmValue; \n\ #read bump map 0 \n\ TEX bmValue, bump0TexCoord, texture[0], 2D; \n\ #bias result (include scaling) \n\ MAD bmValue, bmValue, bump0ScaleBias.xxxx, bump0ScaleBias.yyzz; \n\ -ADD bmValue, bmValue, bump1TexCoord; \n\ +ADD bmValue, bmValue, bump1TexCoord; \n\ #read bump map 1 \n\ TEX bmValue, bmValue, texture[1], 2D; \n\ #bias result (include scaling) \n\ @@ -1700,14 +1700,14 @@ ATTRIB bump1TexCoord = fragment.texcoord[1]; \n\ ATTRIB envMapTexCoord = fragment.texcoord[2]; \n\ ATTRIB fogValue = fragment.fogcoord; \n\ OUTPUT oCol = result.color; \n\ -TEMP bmValue; \n\ +TEMP bmValue; \n\ TEMP envMap; \n\ TEMP tmpFog; \n\ #read bump map 0 \n\ TEX bmValue, bump0TexCoord, texture[0], 2D; \n\ #bias result (include scaling) \n\ MAD bmValue, bmValue, bump0ScaleBias.xxxx, bump0ScaleBias.yyzz; \n\ -ADD bmValue, bmValue, bump1TexCoord; \n\ +ADD bmValue, bmValue, bump1TexCoord; \n\ #read bump map 1 \n\ TEX bmValue, bmValue, texture[1], 2D; \n\ #bias result (include scaling) \n\ @@ -1734,14 +1734,14 @@ ATTRIB bump1TexCoord = fragment.texcoord[1]; \n\ ATTRIB envMapTexCoord = fragment.texcoord[2]; \n\ ATTRIB diffuseTexCoord = fragment.texcoord[3]; \n\ OUTPUT oCol = result.color; \n\ -TEMP bmValue; \n\ +TEMP bmValue; \n\ TEMP diffuse; \n\ TEMP envMap; \n\ #read bump map 0 \n\ TEX bmValue, bump0TexCoord, texture[0], 2D; \n\ #bias result (include scaling) \n\ MAD bmValue, bmValue, bump0ScaleBias.xxxx, bump0ScaleBias.yyzz; \n\ -ADD bmValue, bmValue, bump1TexCoord; \n\ +ADD bmValue, bmValue, bump1TexCoord; \n\ #read bump map 1 \n\ TEX bmValue, bmValue, texture[1], 2D; \n\ #bias result (include scaling) \n\ @@ -1769,7 +1769,7 @@ ATTRIB envMapTexCoord = fragment.texcoord[2]; \n\ ATTRIB diffuseTexCoord = fragment.texcoord[3]; \n\ ATTRIB fogValue = fragment.fogcoord; \n\ OUTPUT oCol = result.color; \n\ -TEMP bmValue; \n\ +TEMP bmValue; \n\ TEMP diffuse; \n\ TEMP envMap; \n\ TEMP tmpFog; \n\ @@ -1777,7 +1777,7 @@ TEMP tmpFog; \n\ TEX bmValue, bump0TexCoord, texture[0], 2D; \n\ #bias result (include scaling) \n\ MAD bmValue, bmValue, bump0ScaleBias.xxxx, bump0ScaleBias.yyzz; \n\ -ADD bmValue, bmValue, bump1TexCoord; \n\ +ADD bmValue, bmValue, bump1TexCoord; \n\ #read bump map 1 \n\ TEX bmValue, bmValue, texture[1], 2D; \n\ #bias result (include scaling) \n\ @@ -2050,18 +2050,18 @@ void CDriverGL::setSwapVBLInterval(uint interval) } #elif defined(NL_OS_MAC) #elif defined(NL_OS_UNIX) - if (_win && _Extensions.GLXEXTSwapControl) + if (_win && _Extensions.GLXEXTSwapControl) { res = nglXSwapIntervalEXT(_dpy, _win, interval) == 0; - } + } else if (_Extensions.GLXSGISwapControl) { res = nglXSwapIntervalSGI(interval) == 0; - } + } else if (_Extensions.GLXMESASwapControl) { res = nglXSwapIntervalMESA(interval) == 0; - } + } #endif if (res) @@ -2093,11 +2093,11 @@ uint CDriverGL::getSwapVBLInterval() glXQueryDrawable(_dpy, _win, GLX_MAX_SWAP_INTERVAL_EXT, &maxSwap); nlwarning("The swap interval is %u and the max swap interval is %u", swap, maxSwap); return swap; - } + } else if (_Extensions.GLXMESASwapControl) { return nglXGetSwapIntervalMESA(); - } + } #endif return _Interval; @@ -2459,10 +2459,10 @@ void CDriverGL::displayBench (class NLMISC::CLog *log) } #ifdef NL_DEBUG - void CDriverGL::dumpMappedBuffers() - { - _AGPVertexArrayRange->dumpMappedBuffers(); - } +void CDriverGL::dumpMappedBuffers() +{ + _AGPVertexArrayRange->dumpMappedBuffers(); +} #endif // ***************************************************************************