Fail if we couldn't create the specified renderer

This commit is contained in:
Sam Lantinga 2014-04-05 16:25:30 -07:00
parent e68f76da43
commit 4d9b83a876

View file

@ -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);