summaryrefslogtreecommitdiff
path: root/src/rendering.c
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2026-03-15 20:47:30 +0000
committeronelin <oscar@nelin.dk>2026-03-15 21:10:14 +0000
commitd773938ce31f8036fde3b407f7a74444fc39686f (patch)
treee454a355503c12e24d8d4a6e0d73527a2bf84e4f /src/rendering.c
parent327896b673cfedb0125860c7af2e564606f0d38d (diff)
Assert all the things
Diffstat (limited to 'src/rendering.c')
-rw-r--r--src/rendering.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rendering.c b/src/rendering.c
index 0e6533f..71f3a75 100644
--- a/src/rendering.c
+++ b/src/rendering.c
@@ -791,7 +791,13 @@ void r_create_framebuffers(void* restrict ctx, u32* restrict framebuffer_array,
usize num_targets) {
const GladGLContext* gl = (GladGLContext*)ctx;
+ u32 err = gl->GetError();
+ ASSERT(!err);
+
+
gl->CreateFramebuffers(num_targets, framebuffer_array);
+ err = gl->GetError();
+ ASSERT(!err);
}
void r_destroy_framebuffers(void* restrict ctx, u32* restrict framebuffer_array,