summaryrefslogtreecommitdiff
path: root/src/xdemos/glxgears.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-08-07 09:41:32 -0600
committerBrian Paul <brianp@vmware.com>2009-08-07 09:50:38 -0600
commitfcbdf36bec72792e43015e525f186aec6c949c2f (patch)
treed3d18c8d0bc1a2104a7bd327f9ada62ddf3eeebf /src/xdemos/glxgears.c
parent94fe6ef13c73be82224aaf89291b2bf1f176825d (diff)
glxgears: make functions static, update comments
Diffstat (limited to 'src/xdemos/glxgears.c')
-rw-r--r--src/xdemos/glxgears.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/xdemos/glxgears.c b/src/xdemos/glxgears.c
index bc84ee3d..088f25a3 100644
--- a/src/xdemos/glxgears.c
+++ b/src/xdemos/glxgears.c
@@ -23,10 +23,7 @@
* This is a port of the infamous "gears" demo to straight GLX (i.e. no GLUT)
* Port by Brian Paul 23 March 2001
*
- * Command line options:
- * -info print GL implementation information
- * -stereo use stereo enabled GLX visual
- *
+ * See usage() below for command line options.
*/
@@ -45,10 +42,6 @@ typedef int (*PFNGLXGETSWAPINTERVALMESAPROC)(void);
#endif
-static int is_glx_extension_supported(Display *dpy, const char *query);
-
-static void query_vsync(Display *dpy);
-
#define BENCHMARK
#ifdef BENCHMARK
@@ -572,7 +565,7 @@ make_window( Display *dpy, const char *name,
/**
* Determine whether or not a GLX extension is supported.
*/
-int
+static int
is_glx_extension_supported(Display *dpy, const char *query)
{
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.
*/
-void
+static void
query_vsync(Display *dpy)
{
int interval = 0;