mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 10:50:39 +02:00
demos: move declaration before code
This commit is contained in:
parent
41a6a2b831
commit
8b2ecfdd5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue