mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-05 04:07:58 +08:00
0025984: Visualization, OpenGl_Workspace::RedrawImmediate() - do not swap buffers within buffersNoSwap option
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user