summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GL/glx/glxcmds.c4
1 files changed, 4 insertions, 0 deletions
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;