mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-21 22:58:42 -06:00
HACK
This commit is contained in:
parent
c8c4028bfb
commit
371f3cb61e
|
@ -156,9 +156,12 @@ impl GliumUiRenderer {
|
||||||
if self.ui_texture.is_none() || hui.atlas().modified {
|
if self.ui_texture.is_none() || hui.atlas().modified {
|
||||||
self.update_texture_atlas(&hui.atlas());
|
self.update_texture_atlas(&hui.atlas());
|
||||||
}
|
}
|
||||||
if self.buffer_pair.is_none() || hui.draw_call().0 {
|
//HACK: modified is incorrect, this is a hack
|
||||||
self.update_buffers(hui.draw_call().1);
|
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) {
|
pub fn draw(&self, frame: &mut glium::Frame, resolution: Vec2) {
|
||||||
|
|
Loading…
Reference in a new issue