more robust failure logic
git-svn-id: svn://anubis/gvsu@318 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
226c88774d
commit
de91797a58
@ -32,9 +32,8 @@ int main(int argc, char * argv[])
|
||||
if (my_rank == 0)
|
||||
{
|
||||
bool window_success = createWindow(width, height, &screen, &pixels);
|
||||
if (!window_success)
|
||||
return -1;
|
||||
|
||||
if (window_success)
|
||||
{
|
||||
for (int y = 0; y < height; y++)
|
||||
{
|
||||
for (int x = 0; x < width; x++)
|
||||
@ -61,6 +60,7 @@ int main(int argc, char * argv[])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MPI_Finalize();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user