Mesa (master): demos: move declaration before code
Brian Paul
brianp at kemper.freedesktop.org
Thu Mar 12 23:23:59 UTC 2009
Module: Mesa
Branch: master
Commit: 8b2ecfdd5c883d4c86b7cc1252671ebb0fad7994
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b2ecfdd5c883d4c86b7cc1252671ebb0fad7994
Author: Brian Paul <brianp at vmware.com>
Date: Thu Mar 12 17:21:05 2009 -0600
demos: move declaration before code
---
progs/xdemos/glsync.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/progs/xdemos/glsync.c b/progs/xdemos/glsync.c
index 95cd1af..34167d3 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");
More information about the mesa-commit
mailing list