mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
XQuartz: AIGLX: Provide empty __glXAquaDrawableResize to avoid crashing in DoMakeCurrent
(cherry picked from commit 60a1d2c2764f2f02c0751940a264588717afce79)
This commit is contained in:
@@ -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; */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user