Commit 04491c76df7becb822271773617c7177d6a473fc
1 parent
f80727e9
Fixed initialization bug
Showing
1 changed file
with
2 additions
and
2 deletions
primlib.c
@@ -148,10 +148,10 @@ int gfx_init() { | @@ -148,10 +148,10 @@ int gfx_init() { | ||
148 | exit(3); | 148 | exit(3); |
149 | } else { | 149 | } else { |
150 | // Create renderer for window | 150 | // Create renderer for window |
151 | - renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_ACCELERATED); | 151 | + renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED); |
152 | 152 | ||
153 | if (renderer == NULL) { | 153 | if (renderer == NULL) { |
154 | - renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_SOFTWARE); | 154 | + renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_SOFTWARE); |
155 | } | 155 | } |
156 | 156 | ||
157 | if (renderer == NULL) { | 157 | if (renderer == NULL) { |