From 4ddd9a0ca71d28dc1d1ab8ad725b17bd9de3ba68 Mon Sep 17 00:00:00 2001 From: Slendi Date: Tue, 30 Sep 2025 16:43:32 +0300 Subject: [PATCH] tweaks Signed-off-by: Slendi --- src/LunarWM_core.c | 2 +- src/LunarWM_wayland.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/LunarWM_core.c b/src/LunarWM_core.c index c662f08..a47ee01 100644 --- a/src/LunarWM_core.c +++ b/src/LunarWM_core.c @@ -417,7 +417,7 @@ void LunarWM_run(LunarWM *wm) EndDrawing(); } else { - wm->renderer.camera.fovy = 90; + wm->renderer.camera.fovy = 75; } } } diff --git a/src/LunarWM_wayland.c b/src/LunarWM_wayland.c index f80e545..ba3e6b1 100644 --- a/src/LunarWM_wayland.c +++ b/src/LunarWM_wayland.c @@ -1599,9 +1599,6 @@ static void handle_output_frame(struct wl_listener *listener, void *data) rlFramebufferAttach(wm->renderer.tmp_rt.id, wm->renderer.tmp_rt.depth.id, RL_ATTACHMENT_DEPTH, RL_ATTACHMENT_RENDERBUFFER, 0); - if (!IsTextureValid(wm->renderer.main_rt.texture)) { - wm->renderer.main_rt = LoadRenderTexture(width, height); - } int const hud_size = wm->cman->cfg.displays.hud.size; if (!IsTextureValid(wm->renderer.hud_rt.texture)) { wm->renderer.hud_rt = LoadRenderTexture(hud_size, hud_size); @@ -1611,6 +1608,10 @@ static void handle_output_frame(struct wl_listener *listener, void *data) LunarWM_render_hud(wm, GetFrameTime(), 1); } EndTextureMode(); + + if (!IsTextureValid(wm->renderer.main_rt.texture)) { + wm->renderer.main_rt = LoadRenderTexture(width, height); + } BeginTextureMode(wm->renderer.main_rt); { BeginMode3D(wm->renderer.camera);