From a1bb4ca7b139864c3ce95a0d2b639b987e17abd5 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Tue, 9 Mar 2021 07:39:21 +0100 Subject: [PATCH] early-access version 1513 --- README.md | 2 +- src/video_core/renderer_opengl/util_shaders.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b2116f6a..656b732fa 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 1512. +This is the source code for early-access 1513. ## Legal Notice diff --git a/src/video_core/renderer_opengl/util_shaders.cpp b/src/video_core/renderer_opengl/util_shaders.cpp index 2e3f0ba5b..a083e4225 100755 --- a/src/video_core/renderer_opengl/util_shaders.cpp +++ b/src/video_core/renderer_opengl/util_shaders.cpp @@ -129,11 +129,12 @@ void UtilShaders::ASTCDecode(Image& image, const ImageBufferMap& map, glBindImageTexture(BINDING_OUTPUT_IMAGE, image.StorageHandle(), swizzle.level, GL_TRUE, 0, GL_WRITE_ONLY, GL_RGBA8); - // ASTC texture data glBindBufferRange(GL_SHADER_STORAGE_BUFFER, BINDING_INPUT_BUFFER, map.buffer, input_offset, image.guest_size_bytes - swizzle.buffer_offset); + // Ensure buffer data is valid before dispatching compute + glFinish(); glDispatchCompute(num_dispatches_x, num_dispatches_y, image.info.resources.layers); } program_manager.RestoreGuestCompute();