mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024228: TKOpenGL - destroy GL context at view close
- OpenGl_Display - release GL resources correctly on closing views - OpenGl_AspectFace, OpenGl_AspectText, OpenGl_AspectLine, OpenGl_AspectMarker - initialize OpenGl resources on demand, when context is available. - Graphic3d_TextureRoot - use const modifier for GetId method to avoid asynchronous resource state at OpenGl. - Do not call OpenGL functions if no active GL context has been left - Reset thread's context before deletion for Mesa WNT
This commit is contained in:
@@ -246,11 +246,11 @@ void OpenGl_CappingAlgo::Init()
|
||||
return;
|
||||
|
||||
myRenderFilter = new OpenGl_CappingAlgoFilter();
|
||||
myNoneCulling.CullingMode = TelCullNone;
|
||||
myNoneCulling.Edge = 0;
|
||||
myNoneCulling.ChangeCullingMode() = TelCullNone;
|
||||
myNoneCulling.ChangeEdge() = 0;
|
||||
|
||||
myFrontCulling.CullingMode = TelCullBack;
|
||||
myFrontCulling.Edge = 0;
|
||||
myFrontCulling.ChangeCullingMode() = TelCullBack;
|
||||
myFrontCulling.ChangeEdge() = 0;
|
||||
|
||||
myIsInit = Standard_True;
|
||||
}
|
||||
|
Reference in New Issue
Block a user