1
0
Fork 0
forked from suyu/suyu

buffer_cache: Fix debugging leftover

This commit is contained in:
ReinUsesLisp 2021-06-19 17:28:46 -03:00 committed by ameerj
parent cfbc85839d
commit df9b7e18f5

View file

@ -1019,7 +1019,7 @@ void BufferCache<P>::BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32
TouchBuffer(buffer); TouchBuffer(buffer);
const bool use_fast_buffer = binding.buffer_id != NULL_BUFFER_ID && const bool use_fast_buffer = binding.buffer_id != NULL_BUFFER_ID &&
size <= uniform_buffer_skip_cache_size && size <= uniform_buffer_skip_cache_size &&
!buffer.IsRegionGpuModified(cpu_addr, size) && false; !buffer.IsRegionGpuModified(cpu_addr, size);
if (use_fast_buffer) { if (use_fast_buffer) {
if constexpr (IS_OPENGL) { if constexpr (IS_OPENGL) {
if (runtime.HasFastBufferSubData()) { if (runtime.HasFastBufferSubData()) {