0025984: Visualization, OpenGl_Workspace::RedrawImmediate() - do not swap buffers...
[occt.git] / src / OpenGl / OpenGl_Workspace.cxx
index 4f75125..a911d0f 100644 (file)
@@ -986,7 +986,8 @@ void OpenGl_Workspace::RedrawImmediate (const Graphic3d_CView& theCView,
     return;
   }
 
-  if (redrawImmediate (theCView, theCUnderLayer, theCOverLayer, NULL, Standard_True))
+  if (redrawImmediate (theCView, theCUnderLayer, theCOverLayer, NULL, Standard_True)
+  && !myGlContext->caps->buffersNoSwap)
   {
     myGlContext->SwapBuffers();
   }