summaryrefslogtreecommitdiff
path: root/progs/xdemos
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-03-12 17:21:05 -0600
committerBrian Paul <brianp@vmware.com>2009-03-12 17:21:05 -0600
commit8b2ecfdd5c883d4c86b7cc1252671ebb0fad7994 (patch)
treed7231a9739c1e191cc33ed7da9fe71aa0a964235 /progs/xdemos
parent41a6a2b831bcb633fca0a539249bda8ece5e10d9 (diff)
demos: move declaration before code
Diffstat (limited to 'progs/xdemos')
-rw-r--r--progs/xdemos/glsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/xdemos/glsync.c b/progs/xdemos/glsync.c
index 95cd1af400..34167d339f 100644
--- a/progs/xdemos/glsync.c
+++ b/progs/xdemos/glsync.c
@@ -112,6 +112,7 @@ int main(int argc, char *argv[])
int attrib[14];
GLint last_val = -1, count = 0;
Window winGL;
+ GLXContext context;
int dummy;
Atom wmDelete;
enum sync_type waitforsync = none;
@@ -185,7 +186,6 @@ int main(int argc, char *argv[])
attrib[10] = None;
}
- GLXContext context;
pvi = glXChooseVisual(disp, DefaultScreen(disp), attrib);
if (!pvi) {
fprintf(stderr, "failed to choose visual, exiting\n");