more robust failure logic

git-svn-id: svn://anubis/gvsu@317 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh committed 2008-12-06 20:20:35 +00:00
1 parent 3937191f37
commit 226c88774d
1 file changed
+3 -1
+3 -1
View File
@@ -31,7 +31,9 @@ int main(int argc, char * argv[])
if (my_rank == 0)
{
createWindow(width, height, &screen, &pixels);
bool window_success = createWindow(width, height, &screen, &pixels);
if (!window_success)
return -1;
for (int y = 0; y < height; y++)
{