projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41a6a2b
)
demos: move declaration before code
author
Brian Paul
<brianp@vmware.com>
Thu, 12 Mar 2009 23:21:05 +0000
(17:21 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 12 Mar 2009 23:21:05 +0000
(17:21 -0600)
progs/xdemos/glsync.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/glsync.c
b/progs/xdemos/glsync.c
index 95cd1af400415ecaee824f9f7d5a6a16300e4778..34167d339f391011df039e5e318596c6c7e01855 100644
(file)
--- 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");