Commit 35e4e70f17fe033e0e9c39d7b71021518bc845f0

Authored by Grzegorz Jabłoński
1 parent 0974df52

Use accelerated renderer by default

Showing 1 changed file with 2 additions and 2 deletions
primlib.c
... ... @@ -133,10 +133,10 @@ int gfx_init() {
133 133 exit(3);
134 134 } else {
135 135 // Create renderer for window
136   - renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_SOFTWARE);
  136 + renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_ACCELERATED);
137 137  
138 138 if (renderer == NULL) {
139   - renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_ACCELERATED);
  139 + renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_SOFTWARE);
140 140 }
141 141  
142 142 if (renderer == NULL) {
... ...