summaryrefslogtreecommitdiff
path: root/GL
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-01-13 23:07:41 +0000
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-01-13 23:07:41 +0000
commit61b3c3aef5437f14d413a60da792257b01e9f8fa (patch)
tree102841d7528d09a9aef044c99192c47e807df69f /GL
parent433c38f22fa96486a43dc0c9871cc09875251b34 (diff)
Thu Jan 13 17:45:13 2005 Søren Sandmann <sandmann@redhat.com>
Make sure the pixmap is a valid new resource Make sure the context is a legal new resource. Handle null attrib_list. Handle null attrib_list; copy attrib_list to data; actually allocate the new GLXDrawable.
Diffstat (limited to 'GL')
-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;