winex11: Pass a display parameter when destroying glxpixmaps.
This commit is contained in:
parent
00633e37bc
commit
86a9b76076
|
@ -431,7 +431,8 @@ BOOL X11DRV_DeleteBitmap( HBITMAP hbitmap )
|
|||
if (GetObjectW( hbitmap, sizeof(dib), &dib ) == sizeof(dib))
|
||||
X11DRV_DIB_DeleteDIBSection( physBitmap, &dib );
|
||||
|
||||
if (physBitmap->glxpixmap) destroy_glxpixmap(physBitmap->glxpixmap);
|
||||
if (physBitmap->glxpixmap)
|
||||
destroy_glxpixmap( gdi_display, physBitmap->glxpixmap );
|
||||
wine_tsx11_lock();
|
||||
if (physBitmap->pixmap) XFreePixmap( gdi_display, physBitmap->pixmap );
|
||||
XDeleteContext( gdi_display, (XID)hbitmap, bitmap_context );
|
||||
|
|
|
@ -3187,10 +3187,10 @@ Drawable get_glxdrawable(X11DRV_PDEVICE *physDev)
|
|||
return ret;
|
||||
}
|
||||
|
||||
BOOL destroy_glxpixmap(XID glxpixmap)
|
||||
BOOL destroy_glxpixmap(Display *display, XID glxpixmap)
|
||||
{
|
||||
wine_tsx11_lock();
|
||||
pglXDestroyGLXPixmap(gdi_display, glxpixmap);
|
||||
pglXDestroyGLXPixmap(display, glxpixmap);
|
||||
wine_tsx11_unlock();
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -3436,7 +3436,7 @@ Drawable get_glxdrawable(X11DRV_PDEVICE *physDev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
BOOL destroy_glxpixmap(XID glxpixmap)
|
||||
BOOL destroy_glxpixmap(Display *display, XID glxpixmap)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -273,7 +273,7 @@ extern void X11DRV_XRender_UpdateDrawable(X11DRV_PDEVICE *physDev);
|
|||
|
||||
extern XVisualInfo *X11DRV_setup_opengl_visual(Display *display);
|
||||
extern Drawable get_glxdrawable(X11DRV_PDEVICE *physDev);
|
||||
extern BOOL destroy_glxpixmap(XID glxpixmap);
|
||||
extern BOOL destroy_glxpixmap(Display *display, XID glxpixmap);
|
||||
|
||||
/* XIM support */
|
||||
extern XIC X11DRV_CreateIC(XIM xim, Display *display, Window win);
|
||||
|
|
Loading…
Reference in New Issue