more robust failure logic
git-svn-id: svn://anubis/gvsu@317 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
3937191f37
commit
226c88774d
@ -31,7 +31,9 @@ int main(int argc, char * argv[])
|
|||||||
|
|
||||||
if (my_rank == 0)
|
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++)
|
for (int y = 0; y < height; y++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user