From 0748f098bcd4b2b5a94d32ec68ab655dbcdd160a Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 13 Dec 2013 15:29:45 +0000 Subject: [PATCH] Fix the problem with update of the OCCT 3D Viewer: synchronize the visual state of the SALOME windows with the OCCT, to avoid creation of the new window for the OCCT 3D viewer inside OpenGl_Window constructor: if (aVis->visualid == wattr.visual->visualid) { aWindow = aParent; } else { unsigned long mask = CWBackPixel | CWColormap | CWBorderPixel | CWEventMask; aWindow = XCreateWindow (aDisp, aParent, 0, 0, myWidth, myHeight, 0/*bw*/, aVis->depth, InputOutput, aVis->visual, mask, &cwa); } --- src/Qtx/Qtx.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Qtx/Qtx.cxx b/src/Qtx/Qtx.cxx index 07a665e54..43f258ffa 100755 --- a/src/Qtx/Qtx.cxx +++ b/src/Qtx/Qtx.cxx @@ -2041,6 +2041,7 @@ Qt::HANDLE Qtx::getVisual() GLX_RGBA, // Needs to support OpenGL GLX_DEPTH_SIZE, 16, // Needs to support a 16 bit depth buffer GLX_DOUBLEBUFFER, // Needs to support double-buffering + GLX_STENCIL_SIZE, 1, None // end of list }; -- 2.39.2