diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-08 01:43:00 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:35 +0200 |
commit | 7eaa74ad235b669608debaf3583af94bd675b6c6 (patch) | |
tree | 5511c08d77455901f7d69c8b36caec54ed95a930 /src/video_core/renderer_opengl/gl_graphics_pipeline.cpp | |
parent | gl_shader_util: Move shader utility code to a separate file (diff) | |
download | yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar.gz yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar.bz2 yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar.lz yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar.xz yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.tar.zst yuzu-7eaa74ad235b669608debaf3583af94bd675b6c6.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_graphics_pipeline.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_graphics_pipeline.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp b/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp index a5d65fdca..a2ea35d5a 100644 --- a/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp +++ b/src/video_core/renderer_opengl/gl_graphics_pipeline.cpp @@ -332,7 +332,10 @@ void GraphicsPipeline::Configure(bool is_indexed) { for (const auto& desc : info.image_descriptors) { for (u32 index = 0; index < desc.count; ++index) { ImageView& image_view{texture_cache.GetImageView(*(views_it++))}; - images[image_binding++] = image_view.Handle(desc.type); + if (desc.is_written) { + texture_cache.MarkModification(image_view.image_id); + } + images[image_binding++] = image_view.StorageView(desc.type, desc.format); } } }}; |