mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
glxdisplay: remove lock in dtor, which causes crash on shutdown
This commit is contained in:
parent
c427357db9
commit
da079c5ffe
@ -64,7 +64,9 @@ glxGraphicsStateGuardian(GraphicsEngine *engine, GraphicsPipe *pipe,
|
|||||||
*/
|
*/
|
||||||
glxGraphicsStateGuardian::
|
glxGraphicsStateGuardian::
|
||||||
~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();
|
destroy_temp_xwindow();
|
||||||
if (_visuals != nullptr) {
|
if (_visuals != nullptr) {
|
||||||
XFree(_visuals);
|
XFree(_visuals);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user