From: curt Date: Wed, 16 May 2007 16:07:03 +0000 (+0000) Subject: Fix various compiler warnings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=786e5addd83c6ea8801bf15b658f9b5865410590;p=simgear.git Fix various compiler warnings. --- diff --git a/simgear/screen/RenderTexture.cpp b/simgear/screen/RenderTexture.cpp index 9e55bf54..661ab693 100644 --- a/simgear/screen/RenderTexture.cpp +++ b/simgear/screen/RenderTexture.cpp @@ -146,8 +146,8 @@ RenderTexture::RenderTexture(const char *strMode) _pDisplay(NULL), _hGLContext(NULL), _hPBuffer(0), - _hPreviousContext(0), _hPreviousDrawable(0), + _hPreviousContext(0), #endif _iTextureTarget(GL_NONE), _iTextureID(0), @@ -622,7 +622,7 @@ bool RenderTexture::Initialize(int width, int height, _pDisplay = glXGetCurrentDisplay(); GLXContext context = glXGetCurrentContext(); int screen = DefaultScreen(_pDisplay); - XVisualInfo *visInfo; + XVisualInfo *visInfo = NULL; GLXFBConfig *fbConfigs; int nConfigs; @@ -667,9 +667,11 @@ bool RenderTexture::Initialize(int width, int height, } else { +#ifdef WIN32 int iFormat = 0; int iNumFormats; int attrib = 0; +#endif for (int i=0;i