Fail if we couldn't create the specified renderer
authorSam Lantinga <slouken@libsdl.org>
Sat, 05 Apr 2014 16:25:30 -0700
changeset 8697abf45e1abfe3
parent 8696 6bb798ddf205
child 8698 0eed6a72e3c1
child 8896 d931167c375a
Fail if we couldn't create the specified renderer
src/test/SDL_test_common.c
     1.1 --- a/src/test/SDL_test_common.c	Sat Apr 05 23:50:09 2014 +0200
     1.2 +++ b/src/test/SDL_test_common.c	Sat Apr 05 16:25:30 2014 -0700
     1.3 @@ -886,7 +886,7 @@
     1.4                              break;
     1.5                          }
     1.6                      }
     1.7 -                    if (m == n) {
     1.8 +                    if (m == -1) {
     1.9                          fprintf(stderr,
    1.10                                  "Couldn't find render driver named %s",
    1.11                                  state->renderdriver);