framebuffer: Fix framebuffer size check (#10068)

This commit is contained in:
psyvern
2025-04-13 22:40:15 +02:00
committed by GitHub
parent f4e19d3f1e
commit 99ab3e19d9

View File

@@ -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);