-/* $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 $ */
/*
/*
* $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
visinfo->visual, mask, &attr );
ctx = glXCreateContext( dpy, visinfo, NULL, True );
+ if (!ctx) {
+ printf("Error: glXCreateContext failed\n");
+ exit(1);
+ }
glXMakeCurrent( dpy, win, ctx );