Browse Source

Fail if we couldn't create the specified renderer

Sam Lantinga 11 years ago
parent
commit
d5c109b2f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/test/SDL_test_common.c

+ 1 - 1
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);