]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix the problem with update of the OCCT 3D Viewer: synchronize the visual state of...
authorrnv <rnv@opencascade.com>
Fri, 13 Dec 2013 15:29:45 +0000 (15:29 +0000)
committerrnv <rnv@opencascade.com>
Fri, 13 Dec 2013 15:29:45 +0000 (15:29 +0000)
    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

index 07a665e545e903db70bcf6270b01775a0acfa389..43f258ffabb68fce85474ef7e8d0f3cbd4be5725 100755 (executable)
@@ -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
   };