glxgears: make functions static, update comments

This commit is contained in:
Brian Paul 2009-08-07 09:41:32 -06:00
parent 7bf6efe780
commit 84e67330e1
1 changed files with 3 additions and 10 deletions

View File

@ -23,10 +23,7 @@
* This is a port of the infamous "gears" demo to straight GLX (i.e. no GLUT) * This is a port of the infamous "gears" demo to straight GLX (i.e. no GLUT)
* Port by Brian Paul 23 March 2001 * Port by Brian Paul 23 March 2001
* *
* Command line options: * See usage() below for command line options.
* -info print GL implementation information
* -stereo use stereo enabled GLX visual
*
*/ */
@ -45,10 +42,6 @@ typedef int (*PFNGLXGETSWAPINTERVALMESAPROC)(void);
#endif #endif
static int is_glx_extension_supported(Display *dpy, const char *query);
static void query_vsync(Display *dpy);
#define BENCHMARK #define BENCHMARK
#ifdef BENCHMARK #ifdef BENCHMARK
@ -572,7 +565,7 @@ make_window( Display *dpy, const char *name,
/** /**
* Determine whether or not a GLX extension is supported. * Determine whether or not a GLX extension is supported.
*/ */
int static int
is_glx_extension_supported(Display *dpy, const char *query) is_glx_extension_supported(Display *dpy, const char *query)
{ {
const int scrnum = DefaultScreen(dpy); const int scrnum = DefaultScreen(dpy);
@ -592,7 +585,7 @@ is_glx_extension_supported(Display *dpy, const char *query)
/** /**
* Attempt to determine whether or not the display is synched to vblank. * Attempt to determine whether or not the display is synched to vblank.
*/ */
void static void
query_vsync(Display *dpy) query_vsync(Display *dpy)
{ {
int interval = 0; int interval = 0;