Ver Fonte

vulkan: Fix regression with random dynamic uniform values

rdb há 1 ano atrás
pai
commit
0f746abceb
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      panda/src/vulkandisplay/vulkanShaderContext.cxx

+ 1 - 2
panda/src/vulkandisplay/vulkanShaderContext.cxx

@@ -615,8 +615,7 @@ update_dynamic_uniforms(VulkanGraphicsStateGuardian *gsg, int altered) {
     }
 
     VkBuffer ubo;
-    uint32_t ubo_offset;
-    void *ptr = gsg->alloc_dynamic_uniform_buffer(_other_state_block._size, ubo, ubo_offset);
+    void *ptr = gsg->alloc_dynamic_uniform_buffer(_other_state_block._size, ubo, _dynamic_uniform_offset);
 
     ShaderInputBinding::State state;
     state.gsg = gsg;