mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
Ports: Update the C-ray renderer port
This commit is contained in:
parent
712e7102b0
commit
22259bf85d
9 changed files with 85 additions and 87 deletions
13
Ports/c-ray/patches/set-sdl-software-renderer.patch
Normal file
13
Ports/c-ray/patches/set-sdl-software-renderer.patch
Normal file
|
@ -0,0 +1,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;
|
Loading…
Add table
Add a link
Reference in a new issue