@@ -151,7 +151,7 @@ void GenerateBlockGPUTask::prepare(GPUTaskContext &ctx) {
151
151
// Note, this internally locks RenderingDeviceVulkan's class mutex. Which means it could perhaps be used outside
152
152
// of the compute list (which already locks the class mutex until it ends). Thankfully, it uses a recursive
153
153
// Mutex (instead of BinaryMutex)
154
- const RID generator_uniform_set =
154
+ _generator_uniform_set =
155
155
zylann::godot::uniform_set_create (rd, generator_uniforms, generator_shader_rid, 0 );
156
156
157
157
{
@@ -160,7 +160,7 @@ void GenerateBlockGPUTask::prepare(GPUTaskContext &ctx) {
160
160
}
161
161
{
162
162
ZN_PROFILE_SCOPE_NAMED (" compute_list_bind_uniform_set" );
163
- rd.compute_list_bind_uniform_set (compute_list_id, generator_uniform_set , 0 );
163
+ rd.compute_list_bind_uniform_set (compute_list_id, _generator_uniform_set , 0 );
164
164
}
165
165
166
166
const Box3i &box = boxes_to_generate[box_index];
@@ -464,7 +464,8 @@ void GenerateBlockGPUTask::collect(GPUTaskContext &ctx) {
464
464
}
465
465
466
466
zylann::godot::free_rendering_device_rid (rd, _generator_pipeline_rid);
467
-
467
+ zylann::godot::free_rendering_device_rid (rd, _generator_uniform_set);
468
+
468
469
for (RID rid : _modifier_pipelines) {
469
470
zylann::godot::free_rendering_device_rid (rd, rid);
470
471
}
0 commit comments