mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0030931: Visualization, TKOpenGl - do not render into GL_FRONT within "GDI Generic" renderer
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.
This commit is contained in:
@@ -817,7 +817,7 @@ bool OpenGl_View::redrawImmediate (const Graphic3d_Camera::Projection theProject
|
||||
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)
|
||||
@@ -855,6 +855,7 @@ bool OpenGl_View::redrawImmediate (const Graphic3d_Camera::Projection theProject
|
||||
}
|
||||
else
|
||||
{
|
||||
toCopyBackToFront = GL_FALSE;
|
||||
myBackBufferRestored = Standard_False;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user