From: Brian Paul Date: Thu, 12 Mar 2009 23:21:05 +0000 (-0600) Subject: demos: move declaration before code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b2ecfdd5c883d4c86b7cc1252671ebb0fad7994;p=mesa.git demos: move declaration before code --- diff --git a/progs/xdemos/glsync.c b/progs/xdemos/glsync.c index 95cd1af4004..34167d339f3 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");