mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 13:10:24 +01:00
XQuartz: AIGLX: Provide empty __glXAquaDrawableResize to avoid crashing in DoMakeCurrent
This commit is contained in:
parent
552be074e5
commit
60a1d2c276
1 changed files with 7 additions and 0 deletions
|
|
@ -391,6 +391,12 @@ static int __glXAquaContextForceCurrent(__GLXcontext *baseContext)
|
|||
|
||||
/* Drawing surface notification callbacks */
|
||||
|
||||
static GLboolean __glXAquaDrawableResize(__GLXdrawable *base) {
|
||||
// Don't remove, <rdar://problem/7114913>
|
||||
GLAQUA_DEBUG_MSG("unimplemented glAquaDrawableResize\n");
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
static GLboolean __glXAquaDrawableSwapBuffers(__GLXdrawable *base) {
|
||||
CGLError err;
|
||||
__GLXAquaDrawable *drawable;
|
||||
|
|
@ -577,6 +583,7 @@ __glXAquaScreenCreateDrawable(__GLXscreen *screen,
|
|||
}
|
||||
|
||||
glxPriv->base.destroy = __glXAquaDrawableDestroy;
|
||||
glxPriv->base.resize = __glXAquaDrawableResize;
|
||||
glxPriv->base.swapBuffers = __glXAquaDrawableSwapBuffers;
|
||||
glxPriv->base.copySubBuffer = NULL; /* __glXAquaDrawableCopySubBuffer; */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue