Skip to content

Commit

Permalink
Don't poll for SDL events if we never set a video mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 11, 2011
1 parent 787fb33 commit 3834af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sdltheoraplay.c
Expand Up @@ -249,7 +249,7 @@ static void playfile(const char *fname)
} // if

// Pump the event loop here.
while (SDL_PollEvent(&event))
while (screen && SDL_PollEvent(&event))
{
switch (event.type)
{
Expand Down

0 comments on commit 3834af6

Please sign in to comment.