Commit e68b27b1 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

winex11.drv: Destroy GLX pbuffer when destroying drawable.

parent 2299d400
...@@ -1165,6 +1165,10 @@ static void release_gl_drawable( struct gl_drawable *gl ) ...@@ -1165,6 +1165,10 @@ static void release_gl_drawable( struct gl_drawable *gl )
pglXDestroyPixmap( gdi_display, gl->drawable ); pglXDestroyPixmap( gdi_display, gl->drawable );
XFreePixmap( gdi_display, gl->pixmap ); XFreePixmap( gdi_display, gl->pixmap );
break; break;
case DC_GL_PBUFFER:
TRACE( "destroying pbuffer drawable %lx\n", gl->drawable );
pglXDestroyPbuffer( gdi_display, gl->drawable );
break;
default: default:
break; break;
} }
...@@ -2316,7 +2320,6 @@ static BOOL X11DRV_wglDestroyPbufferARB( struct wgl_pbuffer *object ) ...@@ -2316,7 +2320,6 @@ static BOOL X11DRV_wglDestroyPbufferARB( struct wgl_pbuffer *object )
pthread_mutex_lock( &context_mutex ); pthread_mutex_lock( &context_mutex );
list_remove( &object->entry ); list_remove( &object->entry );
pthread_mutex_unlock( &context_mutex ); pthread_mutex_unlock( &context_mutex );
pglXDestroyPbuffer(gdi_display, object->gl->drawable);
release_gl_drawable( object->gl ); release_gl_drawable( object->gl );
if (object->tmp_context) if (object->tmp_context)
pglXDestroyContext(gdi_display, object->tmp_context); pglXDestroyContext(gdi_display, object->tmp_context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment