framebuffer: Fix framebuffer size check (#10068)
This commit is contained in:
parent
f4e19d3f1e
commit
99ab3e19d9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue