Skip to content

Commit

Permalink
Fail if we couldn't create the specified renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 5, 2014
1 parent 83200a3 commit d5c109b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/SDL_test_common.c
Expand Up @@ -886,7 +886,7 @@ SDLTest_CommonInit(SDLTest_CommonState * state)
break;
}
}
if (m == n) {
if (m == -1) {
fprintf(stderr,
"Couldn't find render driver named %s",
state->renderdriver);
Expand Down

0 comments on commit d5c109b

Please sign in to comment.