Commit 04491c76df7becb822271773617c7177d6a473fc

Authored by Grzegorz Jabłoński
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 148 exit(3);
149 149 } else {
150 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 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 157 if (renderer == NULL) {
... ...