From 61b3c3aef5437f14d413a60da792257b01e9f8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Thu, 13 Jan 2005 23:07:41 +0000 Subject: [PATCH] =?UTF-8?q?Thu=20Jan=2013=2017:45:13=202005=20S=C3=B8ren?= =?UTF-8?q?=20Sandmann=20=20Make=20sure=20the=20pixma?= =?UTF-8?q?p=20is=20a=20valid=20new=20resource=20Make=20sure=20the=20conte?= =?UTF-8?q?xt=20is=20a=20legal=20new=20resource.=20Handle=20null=20attrib?= =?UTF-8?q?=5Flist.=20Handle=20null=20attrib=5Flist;=20copy=20attrib=5Flis?= =?UTF-8?q?t=20to=20data;=20actually=20allocate=20the=20=20=20=20=20new=20?= =?UTF-8?q?GLXDrawable.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GL/glx/glxcmds.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GL/glx/glxcmds.c b/GL/glx/glxcmds.c index 9908e8a2d..f756d1830 100644 --- a/GL/glx/glxcmds.c +++ b/GL/glx/glxcmds.c @@ -96,6 +96,8 @@ int DoCreateContext(__GLXclientState *cl, GLXContextID gcId, __GLXscreenInfo *pGlxScreen; __GLinterface *shareGC; GLint i; + + LEGAL_NEW_RESOURCE(gcId, client); /* ** Check if screen exists. @@ -1129,6 +1131,8 @@ int DoCreateGLXPixmap(__GLXclientState *cl, VisualID visual, __GLcontextModes *modes; int i; + LEGAL_NEW_RESOURCE(glxpixmapId, client); + pDraw = (DrawablePtr) LookupDrawable(pixmapId, client); if (!pDraw || pDraw->type != DRAWABLE_PIXMAP) { client->errorValue = pixmapId;