added const to static variable for mt safety

This commit is contained in:
vurtun 2015-12-08 22:44:45 +01:00
parent d1d1e32da7
commit 330a77f27e
1 changed files with 2 additions and 2 deletions

View File

@ -6226,7 +6226,7 @@ zr_style_set_font(struct zr_style *style, const struct zr_user_font *font)
struct zr_vec2
zr_style_property(const struct zr_style *style, enum zr_style_properties index)
{
static struct zr_vec2 zero;
static const struct zr_vec2 zero;
ZR_ASSERT(style);
if (!style) return zero;
return style->properties[index];
@ -6235,7 +6235,7 @@ zr_style_property(const struct zr_style *style, enum zr_style_properties index)
struct zr_color
zr_style_color(const struct zr_style *style, enum zr_style_colors index)
{
static struct zr_color zero;
static const struct zr_color zero;
ZR_ASSERT(style);
if (!style) return zero;
return style->colors[index];