diff options
author | Tuomas Virtanen <katajakasa@gmail.com> | 2019-05-30 22:10:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-30 22:10:03 +0300 |
commit | bdbdc1fbdda94fa643535fa021488923e215123e (patch) | |
tree | 70b567510932dfe636a202cb199cb2cdc17c6ff4 | |
parent | 574e72586589f712c1127ce42479adcff60f6e81 (diff) | |
parent | 3d4b921ab03c3c2301e15c5ce4f2637078e67ccb (diff) |
Merge pull request #56 from gamelaster/patch-1
Fix variable name in example_simple.c
-rw-r--r-- | examples/example_simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example_simple.c b/examples/example_simple.c index 234a83d..bce0751 100644 --- a/examples/example_simple.c +++ b/examples/example_simple.c @@ -47,7 +47,7 @@ int main(int argc, char *argv[]) { // Create an accelerated renderer. Enable vsync, so we don't need to play around with SDL_Delay. renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED|SDL_RENDERER_PRESENTVSYNC); - if(window == NULL) { + if(renderer == NULL) { fprintf(stderr, "Unable to create a renderer!\n"); return 1; } |