summaryrefslogtreecommitdiff
path: root/src/render/Framebuffer.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-04-03 14:23:19 +0100
committerVaxry <vaxry@vaxry.net>2024-04-03 14:24:15 +0100
commit3981f85e9487224e8c193160cbd7ae7137a11204 (patch)
treed86f72e2ce02b3e711754e016203d50121fcaf39 /src/render/Framebuffer.cpp
parentefdc1af04420b59917f8530a20ccfabe658f636a (diff)
opengl: log framebuffer errors
Diffstat (limited to 'src/render/Framebuffer.cpp')
-rw-r--r--src/render/Framebuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Framebuffer.cpp b/src/render/Framebuffer.cpp
index d35e5119..83325dd7 100644
--- a/src/render/Framebuffer.cpp
+++ b/src/render/Framebuffer.cpp
@@ -43,7 +43,7 @@ bool CFramebuffer::alloc(int w, int h, uint32_t drmFormat) {
#endif
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);
}