summaryrefslogtreecommitdiff
path: root/src/rendering.c
diff options
context:
space:
mode:
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,