From aafb219b6b727e4e9b3b6a06a2fabd6fd75a68b6 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Fri, 1 Mar 2024 20:49:34 +0100 Subject: [PATCH] do not invalidate buffers --- hui-glium/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hui-glium/src/lib.rs b/hui-glium/src/lib.rs index 6b39483..361a9b4 100644 --- a/hui-glium/src/lib.rs +++ b/hui-glium/src/lib.rs @@ -95,8 +95,8 @@ impl BufferPair { self.vertex_count = vtx.len(); self.index_count = idx.len(); - self.vertex_buffer.invalidate(); - self.index_buffer.invalidate(); + // self.vertex_buffer.invalidate(); + // self.index_buffer.invalidate(); if self.vertex_count == 0 || self.index_count == 0 { return