From 786e5addd83c6ea8801bf15b658f9b5865410590 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 16 May 2007 16:07:03 +0000 Subject: [PATCH] Fix various compiler warnings. --- simgear/screen/RenderTexture.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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