mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-16 15:06:03 +00:00
framebuffer: Fix framebuffer size check (#10068)
This commit is contained in:
@@ -7,7 +7,7 @@ CFramebuffer::CFramebuffer() {
|
|||||||
|
|
||||||
bool CFramebuffer::alloc(int w, int h, uint32_t drmFormat) {
|
bool CFramebuffer::alloc(int w, int h, uint32_t drmFormat) {
|
||||||
bool firstAlloc = false;
|
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 glFormat = NFormatUtils::drmFormatToGL(drmFormat);
|
||||||
uint32_t glType = NFormatUtils::glFormatToType(glFormat);
|
uint32_t glType = NFormatUtils::glFormatToType(glFormat);
|
||||||
|
Reference in New Issue
Block a user