Fail if we couldn't create the specified renderer
diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c
index 676dee2..6fa984b 100644
--- a/src/test/SDL_test_common.c
+++ b/src/test/SDL_test_common.c
@@ -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);