summaryrefslogtreecommitdiff
path: root/src/render/Framebuffer.cpp
diff options
context:
space:
mode:
authorpsyvern <58957996+psyvern@users.noreply.github.com>2025-04-13 22:40:15 +0200
committerGitHub <noreply@github.com>2025-04-13 22:40:15 +0200
commit99ab3e19d928c3c33ca7d7c5f5b0cbc7eb50dce5 (patch)
tree2309ff980f0089ef1ff9f9cf2c24ded1f183aa62 /src/render/Framebuffer.cpp
parentf4e19d3f1e27b4cf1236e93d767f9f6e916730ea (diff)
framebuffer: Fix framebuffer size check (#10068)
Diffstat (limited to 'src/render/Framebuffer.cpp')
-rw-r--r--src/render/Framebuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Framebuffer.cpp b/src/render/Framebuffer.cpp
index 6905eb36..46e7d195 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);