From 99ab3e19d928c3c33ca7d7c5f5b0cbc7eb50dce5 Mon Sep 17 00:00:00 2001 From: psyvern <58957996+psyvern@users.noreply.github.com> Date: Sun, 13 Apr 2025 22:40:15 +0200 Subject: [PATCH] framebuffer: Fix framebuffer size check (#10068) --- src/render/Framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/Framebuffer.cpp b/src/render/Framebuffer.cpp index 6905eb361..46e7d1958 100644 --- a/src/render/Framebuffer.cpp +++ b/src/render/Framebuffer.cpp @@ -7,7 +7,7 @@ CFramebuffer::CFramebuffer() { bool CFramebuffer::alloc(int w, int h, uint32_t drmFormat) { bool firstAlloc = false; - RASSERT((w > 1 && h > 1), "cannot alloc a FB with negative / zero size! (attempted {}x{})", w, h); + RASSERT((w > 0 && h > 0), "cannot alloc a FB with negative / zero size! (attempted {}x{})", w, h); uint32_t glFormat = NFormatUtils::drmFormatToGL(drmFormat); uint32_t glType = NFormatUtils::glFormatToType(glFormat);