From 371f3cb61e0147c7dea4b605ccbbea6e4a1eb6cf Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Mon, 26 Feb 2024 01:30:52 +0100 Subject: [PATCH] HACK --- hui-glium/src/lib.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hui-glium/src/lib.rs b/hui-glium/src/lib.rs index f652ca2..86e9299 100644 --- a/hui-glium/src/lib.rs +++ b/hui-glium/src/lib.rs @@ -156,9 +156,12 @@ impl GliumUiRenderer { if self.ui_texture.is_none() || hui.atlas().modified { self.update_texture_atlas(&hui.atlas()); } - if self.buffer_pair.is_none() || hui.draw_call().0 { - self.update_buffers(hui.draw_call().1); - } + //HACK: modified is incorrect, this is a hack + self.update_buffers(hui.draw_call().1); + //FIXME before release + // if (self.buffer_pair.is_none() && !hui.draw_call().1.indices.is_empty()) || hui.draw_call().0 { + // self.update_buffers(hui.draw_call().1); + // } } pub fn draw(&self, frame: &mut glium::Frame, resolution: Vec2) {