r300g: remove dead r300_get_texture_buffer function
[mesa.git] / progs / tests / jkrahntest.c
index 520dbb84e787fc0efed84222f68c4536394c0676..3fef105fc2cbcde0b9c5babdebdff7a04889dfdf 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id: jkrahntest.c,v 1.1 2002/06/16 03:57:48 brianp Exp $ */
 
 /* This is a good test for glXSwapBuffers on non-current windows,
  * and the glXCopyContext function.  Fixed several Mesa/DRI bugs with
 #include <stdlib.h>
 #include <unistd.h>
 #include <math.h>
+
+#ifndef M_PI
 #define M_PI 3.14159
+#endif
+
 #define DEGTOR (M_PI/180.0)
 
 static int AttributeList[] = { GLX_RGBA, GLX_DOUBLEBUFFER, None };
@@ -42,7 +45,7 @@ int main(int argc, char **argv)
 
     if (argc < 2) {
        fprintf(stderr, "This program tests GLX context switching.\n");
-       fprintf(stderr, "Usage: cxbug <n>\n");
+       fprintf(stderr, "Usage: jkrahntest <n>\n");
        fprintf(stderr, "Where n is:\n");
        fprintf(stderr, "\t1) Use two contexts and swap only when the context is current (typical case).\n");
        fprintf(stderr, "\t2) Use two contexts and swap at the same time.\n");