From: rnv Date: Fri, 13 Dec 2013 15:29:45 +0000 (+0000) Subject: Fix the problem with update of the OCCT 3D Viewer: synchronize the visual state of... X-Git-Tag: V7_3_0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0748f098bcd4b2b5a94d32ec68ab655dbcdd160a;p=modules%2Fgui.git 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); } --- 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 };