mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 23:45:58 +01:00
opengl: log framebuffer errors
This commit is contained in:
parent
efdc1af044
commit
3981f85e94
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ bool CFramebuffer::alloc(int w, int h, uint32_t drmFormat) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
auto status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
auto status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
||||||
RASSERT((status == GL_FRAMEBUFFER_COMPLETE), "Framebuffer incomplete, couldn't create! (FB status: {})", status);
|
RASSERT((status == GL_FRAMEBUFFER_COMPLETE), "Framebuffer incomplete, couldn't create! (FB status: {}, GL Error: 0x{:x})", status, (int)glGetError());
|
||||||
|
|
||||||
Debug::log(LOG, "Framebuffer created, status {}", status);
|
Debug::log(LOG, "Framebuffer created, status {}", status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue