From d773938ce31f8036fde3b407f7a74444fc39686f Mon Sep 17 00:00:00 2001 From: onelin Date: Sun, 15 Mar 2026 21:47:30 +0100 Subject: Assert all the things --- src/rendering.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/rendering.c') 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, -- cgit v1.3