mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
demos: move glewInit() call, fixes crash/bug 21247
This commit is contained in:
parent
3b76072915
commit
90c880f089
1 changed files with 1 additions and 1 deletions
|
|
@ -280,9 +280,9 @@ int main(int argc, char **argv)
|
|||
glutInitWindowPosition(0, 0);
|
||||
glutInitWindowSize(400, 400);
|
||||
if (glutCreateWindow("Isosurface") <= 0) {
|
||||
glewInit();
|
||||
exit(0);
|
||||
}
|
||||
glewInit();
|
||||
glutReshapeFunc(Reshape);
|
||||
glutKeyboardFunc(Key);
|
||||
glutSpecialFunc(SpecialKey);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue