summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2006-04-03 00:00:53 +0000
committerAdam Jackson <[email protected]>2006-04-03 00:00:53 +0000
commit5ab5517ba8d2d0b4d590b5fe864797b8a8241cc5 (patch)
tree511c7e28185998d337e485441b512da4ff4958b0 /src/glx
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/glx')
-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 eb6e870e984..14d5ffa4f96 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)