diff options
| author | psyvern <58957996+psyvern@users.noreply.github.com> | 2025-04-13 22:40:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-13 22:40:15 +0200 |
| commit | 99ab3e19d928c3c33ca7d7c5f5b0cbc7eb50dce5 (patch) | |
| tree | 2309ff980f0089ef1ff9f9cf2c24ded1f183aa62 /src/render/Framebuffer.cpp | |
| parent | f4e19d3f1e27b4cf1236e93d767f9f6e916730ea (diff) | |
framebuffer: Fix framebuffer size check (#10068)
Diffstat (limited to 'src/render/Framebuffer.cpp')
| -rw-r--r-- | src/render/Framebuffer.cpp | 2 |
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); |
