ladybird/Ports/c-ray/patches/set-sdl-software-renderer.patch

12 lines
508 B
Diff
Raw Normal View History

2021-03-14 00:11:07 +03:00
--- c-ray-master/src/utils/ui.c 2021-03-13 00:30:25.488000000 +0100
+++ c-ray-master/src/utils/ui.c 2021-03-13 00:30:41.056572879 +0100
@@ -120,7 +120,7 @@
return;
2020-02-25 23:03:47 +03:00
}
//Init renderer
2021-03-14 00:11:07 +03:00
- gdisplay->renderer = SDL_CreateRenderer(gdisplay->window, -1, SDL_RENDERER_ACCELERATED);
+ gdisplay->renderer = SDL_CreateRenderer(gdisplay->window, -1, SDL_RENDERER_SOFTWARE);
if (gdisplay->renderer == NULL) {
2020-02-25 23:03:47 +03:00
logr(warning, "Renderer couldn't be created, error: \"%s\"\n", SDL_GetError());
2021-03-14 00:11:07 +03:00
destroyDisplay();