summaryrefslogtreecommitdiff
path: root/Ports/c-ray/patches/set-sdl-software-renderer.patch
blob: 7b7899c0fe38160c05bcacdedc3576789eed4e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/utils/ui.c b/src/utils/ui.c
index afcb4fc..3713b87 100644
--- a/src/utils/ui.c
+++ b/src/utils/ui.c
@@ -63,7 +63,7 @@ int initSDL(struct display *d) {
 		return -1;
 	}
 	//Init renderer
-	d->renderer = SDL_CreateRenderer(d->window, -1, SDL_RENDERER_ACCELERATED);
+	d->renderer = SDL_CreateRenderer(d->window, -1, SDL_RENDERER_SOFTWARE);
 	if (d->renderer == NULL) {
 		logr(warning, "Renderer couldn't be created, error: \"%s\"\n", SDL_GetError());
 		return -1;