浏览代码

glxdisplay: remove lock in dtor, which causes crash on shutdown

rdb 7 年之前
父节点
当前提交
da079c5ffe
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      panda/src/glxdisplay/glxGraphicsStateGuardian.cxx

+ 3 - 1
panda/src/glxdisplay/glxGraphicsStateGuardian.cxx

@@ -64,7 +64,9 @@ glxGraphicsStateGuardian(GraphicsEngine *engine, GraphicsPipe *pipe,
  */
 glxGraphicsStateGuardian::
 ~glxGraphicsStateGuardian() {
-  LightReMutexHolder holder(glxGraphicsPipe::_x_mutex);
+  // Actually, the lock might have already destructed, so we can't reliably
+  // grab the X11 lock here.
+  //LightReMutexHolder holder(glxGraphicsPipe::_x_mutex);
   destroy_temp_xwindow();
   if (_visuals != nullptr) {
     XFree(_visuals);