diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-08-06 20:55:05 +0200 |
---|---|---|
committer | Ameer J <52414509+ameerj@users.noreply.github.com> | 2023-08-06 20:55:05 +0200 |
commit | 9058486b9b9833d0554d3e3f11a582859657b21f (patch) | |
tree | fe16d174b54119a593b43c01f89c8ff1d4e1f3cf /src/video_core/renderer_opengl/gl_texture_cache.cpp | |
parent | HACK: Avoid swizzling and reuploading ASTC image every frame (diff) | |
download | yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.gz yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.bz2 yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.lz yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.xz yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.tar.zst yuzu-9058486b9b9833d0554d3e3f11a582859657b21f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index 9ca544ec9..9cafd2983 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp @@ -554,14 +554,7 @@ void TextureCacheRuntime::Finish() { } StagingBufferMap TextureCacheRuntime::UploadStagingBuffer(size_t size) { - static StagingBufferMap result; - static size_t last_size = 0; - if (size == last_size) { - return result; - } - last_size = size; - result = staging_buffer_pool.RequestUploadBuffer(size); - return result; + return staging_buffer_pool.RequestUploadBuffer(size); } StagingBufferMap TextureCacheRuntime::DownloadStagingBuffer(size_t size) { |