Browse Source

gobj: Fix `ShaderBuffer.prepare()` not actually doing anything

rdb 3 years ago
parent
commit
fcfa1d2c99
1 changed files with 6 additions and 0 deletions
  1. 6 0
      panda/src/gobj/preparedGraphicsObjects.cxx

+ 6 - 0
panda/src/gobj/preparedGraphicsObjects.cxx

@@ -1658,6 +1658,12 @@ begin_frame(GraphicsStateGuardianBase *gsg, Thread *current_thread) {
   }
 
   _enqueued_index_buffers.clear();
+
+  for (ShaderBuffer *buffer : _enqueued_shader_buffers) {
+    buffer->prepare_now(this, gsg);
+  }
+
+  _enqueued_shader_buffers.clear();
 }
 
 /**