From fcfa1d2c99331f94efcefc9da9ec508eaf9fc1f5 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 21 Nov 2022 18:25:46 +0100 Subject: [PATCH] gobj: Fix `ShaderBuffer.prepare()` not actually doing anything --- panda/src/gobj/preparedGraphicsObjects.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/panda/src/gobj/preparedGraphicsObjects.cxx b/panda/src/gobj/preparedGraphicsObjects.cxx index 099b40c899..c26fb7735f 100644 --- a/panda/src/gobj/preparedGraphicsObjects.cxx +++ b/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(); } /**