]> git.cworth.org Git - apitrace-tests/commitdiff
Ensure the app terminates.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 29 Oct 2011 20:40:26 +0000 (21:40 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 29 Oct 2011 20:40:26 +0000 (21:40 +0100)
glutDestroyWindow apparently does not guarantee that on all platforms.

apps/gl/tri.c

index f5a8be8f58b32a3559c72eeefa9ec22662b895c9..ea3b595550f4193f3d8e56d4f2ea4ae48547f091 100644 (file)
@@ -77,6 +77,8 @@ static void Draw(void)
    }
    
    glutDestroyWindow(win);
    }
    
    glutDestroyWindow(win);
+
+   exit(0);
 }
 
 int main(int argc, char **argv)
 }
 
 int main(int argc, char **argv)