aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-09-20 17:52:34 +0200
committerAndre Weissflog <floooh@gmail.com>2024-09-20 17:52:34 +0200
commit3311dc7909fd2042142eecdd3642f36153882eef (patch)
tree0a93d39ce7a4a23a768522724c23542274c2126c
parent98849729ad6a9cfb1810edf401b2d5f1669ba905 (diff)
sokol_gl.h: fix a C-ism / C++ warning (using {0} for a struct init)
-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;
}