]> git.mxchange.org Git - simgear.git/commitdiff
Compile when not GLX
authorfredb <fredb>
Mon, 6 Jul 2009 22:58:09 +0000 (22:58 +0000)
committerTim Moore <timoore@redhat.com>
Sat, 11 Jul 2009 22:52:07 +0000 (00:52 +0200)
simgear/screen/RenderTexture.cpp

index aaee155ab50548382fd696a15567abacb6124875..328dad1a61290e9be5d4841eafa4e8f25066645b 100644 (file)
@@ -2780,7 +2780,6 @@ bool RenderTexture::_ReleaseBoundBuffers()
 * @fn RenderTexture::_MakeCurrent()
 * @brief Makes the RenderTexture's context current
 */ 
-static GLXContext last_hGLContext = 0;
 bool RenderTexture::_MakeCurrent() 
 {
 #ifdef _WIN32
@@ -2805,11 +2804,6 @@ bool RenderTexture::_MakeCurrent()
         return false;
     }
 #endif
-
-    if ( last_hGLContext != _hGLContext ) {
-      last_hGLContext = _hGLContext;
-      dbg_printf( "_MakeCurrent: glXMakeCurrent set to [%p] SUCCESS! returning true\n", _hGLContext );
-    }
     return true;
 }