summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-02-02 15:38:26 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-02-02 15:38:26 +0000
commit18a949000cee8f8e63b633b628bbdbc8196fe7de (patch)
tree17272f5f76c5e12464b176fbbcee0c7e6770823a /progs
parent61bc62cc40764b58ac8bceb48a579534841fca93 (diff)
tweak comments
Diffstat (limited to 'progs')
-rw-r--r--progs/xdemos/pbdemo.c6
-rw-r--r--progs/xdemos/pbutil.c6
2 files changed, 7 insertions, 5 deletions
diff --git a/progs/xdemos/pbdemo.c b/progs/xdemos/pbdemo.c
index 9bce5699a2..bc9d8124c8 100644
--- a/progs/xdemos/pbdemo.c
+++ b/progs/xdemos/pbdemo.c
@@ -51,12 +51,16 @@ static int gWidth, gHeight;
/*
* Create the pbuffer and return a GLXPbufferSGIX handle.
+ *
+ * We loop over a list of fbconfigs trying to create
+ * a pixel buffer. We return the first pixel buffer which we successfully
+ * create.
*/
static GLXPbufferSGIX
MakePbuffer( Display *dpy, int screen, int width, int height )
{
#define NUM_FB_CONFIGS 4
- char fbString[NUM_FB_CONFIGS][100] = {
+ const char fbString[NUM_FB_CONFIGS][100] = {
"Single Buffered, depth buffer",
"Double Buffered, depth buffer",
"Single Buffered, no depth buffer",
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().