mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-30 22:30:08 +01:00
XQuartz: GLX: Don't mangle __GLXDrawable's pDraw
We were incorrectly NULLing out pDraw in __GLXDrawable instead of ours in __GLXAquaDrawable. (we should refactor to eliminate this redundancy later) This was causing http://xquartz.macosforge.org/trac/ticket/426 This was benign until commitf0006aa58fThe root cause of this change was fed7ccc481ad1caaa518cafe944c2327a5d0b6c65 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> (cherry picked from commit98f90145d7)
This commit is contained in:
parent
c7846bf1b2
commit
5aeb53dd7b
1 changed files with 2 additions and 3 deletions
|
|
@ -271,8 +271,7 @@ static void __glXAquaContextDestroy(__GLXcontext *baseContext) {
|
|||
|
||||
__GLXAquaContext *context = (__GLXAquaContext *) baseContext;
|
||||
|
||||
GLAQUA_DEBUG_MSG("glAquaContextDestroy (ctx 0x%x)\n",
|
||||
(unsigned int) baseContext);
|
||||
GLAQUA_DEBUG_MSG("glAquaContextDestroy (ctx %p)\n", baseContext);
|
||||
if (context != NULL) {
|
||||
if (context->sid != 0 && surface_hash != NULL) {
|
||||
lst = x_hash_table_lookup(surface_hash, x_cvt_uint_to_vptr(context->sid), NULL);
|
||||
|
|
@ -321,7 +320,7 @@ static void surface_notify(void *_arg, void *data) {
|
|||
case AppleDRISurfaceNotifyDestroyed:
|
||||
if (surface_hash != NULL)
|
||||
x_hash_table_remove(surface_hash, x_cvt_uint_to_vptr(arg->id));
|
||||
draw->base.pDraw = NULL;
|
||||
draw->pDraw = NULL;
|
||||
draw->sid = 0;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue