summaryrefslogtreecommitdiff
path: root/GL/glx/glxutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'GL/glx/glxutil.c')
-rw-r--r--GL/glx/glxutil.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/GL/glx/glxutil.c b/GL/glx/glxutil.c
index 1f172929f..f531ed954 100644
--- a/GL/glx/glxutil.c
+++ b/GL/glx/glxutil.c
@@ -139,18 +139,15 @@ __glXUnrefDrawable(__GLXdrawable *glxPriv)
GLboolean
__glXDrawableInit(__GLXdrawable *drawable,
- __GLXscreen *screen, DrawablePtr pDraw, XID drawId,
- __GLcontextModes *modes)
+ __GLXscreen *screen, DrawablePtr pDraw, int type,
+ XID drawId, __GLcontextModes *modes)
{
- drawable->type = pDraw->type;
drawable->pDraw = pDraw;
+ drawable->type = type;
drawable->drawId = drawId;
drawable->refCount = 1;
drawable->modes = modes;
-
- /* if not a pixmap, lookup will fail, so pGlxPixmap will be NULL */
- drawable->pGlxPixmap = (__GLXpixmap *)
- LookupIDByType(drawId, __glXPixmapRes);
+ drawable->eventMask = 0;
return GL_TRUE;
}