diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-04-02 23:53:56 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-04-02 23:53:56 +0000 |
commit | db30cc8d0011b3668d2ff371675796a10da80ae2 (patch) | |
tree | afd25c8113005dcc5a05d00b1754cad2cfac6277 /progs/xdemos | |
parent | 99aab341998e84d9fa208c525cae8021b3845812 (diff) |
added an error check
Diffstat (limited to 'progs/xdemos')
-rw-r--r-- | progs/xdemos/glxdemo.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/progs/xdemos/glxdemo.c b/progs/xdemos/glxdemo.c index c49cd85140..5e7d449790 100644 --- a/progs/xdemos/glxdemo.c +++ b/progs/xdemos/glxdemo.c @@ -1,4 +1,4 @@ -/* $Id: glxdemo.c,v 1.1 1999/08/19 00:55:43 jtg Exp $ */ +/* $Id: glxdemo.c,v 1.2 2002/04/02 23:53:56 brianp Exp $ */ /* @@ -11,8 +11,11 @@ /* * $Log: glxdemo.c,v $ - * Revision 1.1 1999/08/19 00:55:43 jtg - * Initial revision + * Revision 1.2 2002/04/02 23:53:56 brianp + * added an error check + * + * Revision 1.1.1.1 1999/08/19 00:55:43 jtg + * Imported sources * * Revision 3.0 1998/02/21 02:16:54 brianp * initial rev @@ -90,6 +93,10 @@ static Window make_rgb_db_window( Display *dpy, visinfo->visual, mask, &attr ); ctx = glXCreateContext( dpy, visinfo, NULL, True ); + if (!ctx) { + printf("Error: glXCreateContext failed\n"); + exit(1); + } glXMakeCurrent( dpy, win, ctx ); |