aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/graphics/text.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/graphics/text.c b/src/graphics/text.c
index 372def2..f84169a 100644
--- a/src/graphics/text.c
+++ b/src/graphics/text.c
@@ -106,14 +106,12 @@ void mgl_text_deinit(mgl_text *self) {
void mgl_text_set_string(mgl_text *self, const char *str, size_t str_size) {
self->text = str;
self->text_size = str_size;
- if(self->text && self->text_size > 0 && self->font)
- self->bounds_dirty = true;
+ self->bounds_dirty = true;
}
void mgl_text_set_font(mgl_text *self, mgl_font *font) {
self->font = font;
- if(self->text && self->text_size > 0 && self->font)
- self->bounds_dirty = true;
+ self->bounds_dirty = true;
}
void mgl_text_set_position(mgl_text *self, mgl_vec2f position) {