Mesa (master): glxgears: make functions static, update comments
Brian Paul
brianp at kemper.freedesktop.org
Fri Aug 7 15:52:20 UTC 2009
Module: Mesa
Branch: master
Commit: 84e67330e1f20e407857b1dbc309b1abb533f195
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=84e67330e1f20e407857b1dbc309b1abb533f195
Author: Brian Paul <brianp at vmware.com>
Date: Fri Aug 7 09:41:32 2009 -0600
glxgears: make functions static, update comments
---
progs/xdemos/glxgears.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/progs/xdemos/glxgears.c b/progs/xdemos/glxgears.c
index bc84ee3..088f25a 100644
--- a/progs/xdemos/glxgears.c
+++ b/progs/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;
More information about the mesa-commit
mailing list