aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_nuklear.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2021-08-20 19:01:37 +0200
committerAndre Weissflog <floooh@gmail.com>2021-08-20 19:01:37 +0200
commita4ceb3ab5e9bae32127df45aa42d39d039048d90 (patch)
treed21272899e3716a4ddae71f5fbecc754e2caeca9 /util/sokol_nuklear.h
parent4cf67c1790aee5e1eeb3ddc892fc75380a75d221 (diff)
sokol_nuklear.h: remove NK_ALIGNOF macro, which causes an UB warning in recent clang
Diffstat (limited to 'util/sokol_nuklear.h')
-rw-r--r--util/sokol_nuklear.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sokol_nuklear.h b/util/sokol_nuklear.h
index 41a6bdc4..1c56ed47 100644
--- a/util/sokol_nuklear.h
+++ b/util/sokol_nuklear.h
@@ -1900,7 +1900,7 @@ SOKOL_API_IMPL void snk_render(int width, int height) {
.line_AA = NK_ANTI_ALIASING_ON,
.vertex_layout = vertex_layout,
.vertex_size = sizeof(_snk_vertex_t),
- .vertex_alignment = NK_ALIGNOF(_snk_vertex_t),
+ .vertex_alignment = 4,
.circle_segment_count = 22,
.curve_segment_count = 22,
.arc_segment_count = 22,