mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
26 lines
945 B
Diff
26 lines
945 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Linus Groh <mail@linusgroh.de>
|
|
Date: Sat, 13 Mar 2021 22:11:07 +0100
|
|
Subject: [PATCH] Make SDL use software rendering
|
|
|
|
Serenity does not support accelerated rendering
|
|
|
|
Co-Authored-By: Valtteri Koskivuori <vkoskiv@gmail.com>
|
|
---
|
|
src/utils/ui.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/utils/ui.c b/src/utils/ui.c
|
|
index 89553c7..4a52e6c 100644
|
|
--- a/src/utils/ui.c
|
|
+++ b/src/utils/ui.c
|
|
@@ -120,7 +120,7 @@ void initDisplay(bool fullscreen, bool borderless, int width, int height, float
|
|
return;
|
|
}
|
|
//Init renderer
|
|
- gdisplay->renderer = SDL_CreateRenderer(gdisplay->window, -1, SDL_RENDERER_ACCELERATED);
|
|
+ gdisplay->renderer = SDL_CreateRenderer(gdisplay->window, -1, SDL_RENDERER_SOFTWARE);
|
|
if (gdisplay->renderer == NULL) {
|
|
logr(warning, "Renderer couldn't be created, error: \"%s\"\n", SDL_GetError());
|
|
destroyDisplay();
|