aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/sokol_gl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sokol_gl.h b/util/sokol_gl.h
index 654cb0f6..f2b32622 100644
--- a/util/sokol_gl.h
+++ b/util/sokol_gl.h
@@ -2919,7 +2919,8 @@ static void _sgl_destroy_context(sgl_context ctx_id) {
// >>misc
static sgl_error_t _sgl_error_defaults(void) {
- sgl_error_t defaults = {0};
+ sgl_error_t defaults;
+ _sgl_clear(&defaults, sizeof(defaults));
return defaults;
}