From 0d3a03a93e3e1174913b76c28facca83c14e257b Mon Sep 17 00:00:00 2001 From: Slendi Date: Sun, 1 Feb 2026 20:48:57 +0200 Subject: [PATCH] Enable culling while rendering wayland windows I don't even know why I disabled culling even lmao Signed-off-by: Slendi --- src/Application.cpp | 2 +- src/VulkanRenderer.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Application.cpp b/src/Application.cpp index 6b06f3d..31943be 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -1092,7 +1092,7 @@ auto Application::run() -> void wayland_draw_extent.height) }; if (draw_width > 0.0f && draw_height > 0.0f) { gl.set_transform(smath::Mat4::identity()); - gl.set_culling(false); + gl.set_culling(true); gl.use_pipeline(m_renderer->wayland_pipeline()); for (auto *surface : m_wayland->surfaces()) { auto buffer { surface->current_buffer() }; diff --git a/src/VulkanRenderer.h b/src/VulkanRenderer.h index 7167aac..535c356 100644 --- a/src/VulkanRenderer.h +++ b/src/VulkanRenderer.h @@ -84,6 +84,9 @@ struct VulkanRenderer { auto draw_sphere(smath::Vec3 center, float radius, int rings = 16, int segments = 32, std::optional sphere_color = {}) -> void; + auto draw_texture_cyl(AllocatedImage const *texture, + smath::Vec3 sphere_center, PolarCoordinate coord, float rad, + float scale, bool y_flip) -> void; auto end() -> void; auto flush() -> void;