mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05:00
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Manuel Palenzuela <manuelpalenzuelamerino@gmail.com>
|
|
Date: Tue, 30 Mar 2021 17:26:39 +0200
|
|
Subject: [PATCH] Disable SDL accelerated rendering
|
|
|
|
That's not supported on serenity.
|
|
---
|
|
src/app/main.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/app/main.c b/src/app/main.c
|
|
index cfd46b8..fc47912 100644
|
|
--- a/src/app/main.c
|
|
+++ b/src/app/main.c
|
|
@@ -47,7 +47,7 @@ bool init_graphics(gpu *g)
|
|
SDL_WINDOWPOS_UNDEFINED,
|
|
SDL_WINDOWPOS_UNDEFINED,
|
|
X_RES * WINDOW_SCALE, Y_RES * WINDOW_SCALE,
|
|
- SDL_WINDOW_OPENGL);
|
|
+ 0);
|
|
|
|
if (sdl_graphics_ptr->window == NULL)
|
|
{
|
|
@@ -58,7 +58,7 @@ bool init_graphics(gpu *g)
|
|
|
|
sdl_graphics_ptr->renderer = SDL_CreateRenderer(sdl_graphics_ptr->window,
|
|
-1,
|
|
- SDL_RENDERER_ACCELERATED);
|
|
+ 0);
|
|
|
|
if (sdl_graphics_ptr->renderer == NULL)
|
|
{
|