]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
fix on windows ...
authoradam <adam>
Tue, 20 Apr 2010 08:48:34 +0000 (08:48 +0000)
committeradam <adam>
Tue, 20 Apr 2010 08:48:34 +0000 (08:48 +0000)
src/OpenGLUtils/OpenGLUtils_FrameBuffer.cxx

index 87357ec47a36cc88d89949efbaee36390271fbb5..a503d38d00660a7b91cbc6353ea4001cdb72aa4b 100755 (executable)
@@ -165,6 +165,9 @@ bool OpenGLUtils_FrameBuffer::init( const GLsizei& xSize, const GLsizei& ySize )
 
 void OpenGLUtils_FrameBuffer::release()
 {
+  if( !IsEXTInitialized )
+    return;
+
   glDeleteTextures( 1, &textureId );
   textureId = 0;
 
@@ -177,10 +180,16 @@ void OpenGLUtils_FrameBuffer::release()
 
 void OpenGLUtils_FrameBuffer::bind()
 {
+  if( !IsEXTInitialized )
+    return;
+
   vglBindFramebufferEXT( GL_FRAMEBUFFER_EXT, fboId );
 }
 
 void OpenGLUtils_FrameBuffer::unbind()
 {
+  if( !IsEXTInitialized )
+    return;
+
   vglBindFramebufferEXT( GL_FRAMEBUFFER_EXT, 0 );
 }