OpenGl_Workspace now disables at initialization time
OpenGl_View::SetImmediateModeDrawToFront() property in case of "GDI Generic" OpenGL implementation.
OpenGl_View::redrawImmediate() - fixed no buffer swap in case of
myTransientDrawToFront without offscreen FBO.
OpenGl_FrameBuffer* theOitAccumFbo,
const Standard_Boolean theIsPartialUpdate)
{
- Handle(OpenGl_Context) aCtx = myWorkspace->GetGlContext();
+ const Handle(OpenGl_Context)& aCtx = myWorkspace->GetGlContext();
GLboolean toCopyBackToFront = GL_FALSE;
if (theDrawFbo == theReadFbo
&& theDrawFbo != NULL)
}
else
{
+ toCopyBackToFront = GL_FALSE;
myBackBufferRestored = Standard_False;
}
}
glHint (GL_LINE_SMOOTH_HINT, GL_FASTEST);
glHint (GL_POLYGON_SMOOTH_HINT, GL_FASTEST);
+ if (myGlContext->Vendor() == "microsoft corporation"
+ && !myGlContext->IsGlGreaterEqual (1, 2))
+ {
+ // this software implementation causes too slow rendering into GL_FRONT on modern Windows
+ theView->SetImmediateModeDrawToFront (false);
+ }
#endif
}