summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@freedesktop.org>2006-04-03 00:00:53 +0000
committerAdam Jackson <ajax@freedesktop.org>2006-04-03 00:00:53 +0000
commit5ab5517ba8d2d0b4d590b5fe864797b8a8241cc5 (patch)
tree511c7e28185998d337e485441b512da4ff4958b0 /src
parent05ddc4a6c59f4bd288d322594afe4ac561d07fa7 (diff)
Coverity #468: Fill in the rest of the error_list to match the error codes
defined in glxproto.h. Avoids reading semi-random memory (and probably crashing) when calling __glXErrorString().
Diffstat (limited to 'src')
-rw-r--r--src/glx/x11/glxext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index eb6e870e98..14d5ffa4f9 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -289,6 +289,10 @@ static /* const */ char *error_list[] = {
"GLXBadRenderRequest",
"GLXBadLargeRequest",
"GLXUnsupportedPrivateRequest",
+ "GLXBadFBConfig",
+ "GLXBadPbuffer",
+ "GLXBadCurrentDrawable",
+ "GLXBadWindow",
};
int __glXCloseDisplay(Display *dpy, XExtCodes *codes)