summaryrefslogtreecommitdiff
path: root/progs/xdemos/pbutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/xdemos/pbutil.c')
-rw-r--r--progs/xdemos/pbutil.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/progs/xdemos/pbutil.c b/progs/xdemos/pbutil.c
index 1daa95def6..0dd4b409f4 100644
--- a/progs/xdemos/pbutil.c
+++ b/progs/xdemos/pbutil.c
@@ -184,10 +184,8 @@ static int HandleXError( Display *dpy, XErrorEvent *event )
/*
- * Create a pixel buffer. We loop over the list of fbconfigs trying to create
- * a pixel buffer. We return the first pixel buffer which we successfully
- * create. This function hides the ugliness of dealing with BadAlloc X
- * protocol errors.
+ * Create a Pbuffer. Use an X error handler to deal with potential
+ * BadAlloc errors.
*
* Input: dpy - the X display
* fbConfig - an FBConfig as returned by glXChooseFBConfigSGIX().