diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-09-06 04:26:05 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-09-06 04:26:05 +0200 |
commit | 1f43e5296fcd2debaea672fd9740d2f07223406b (patch) | |
tree | 382d7a0f82949a825755c38363c8aaf33bc47e98 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | texture_cache: Minor changes (diff) | |
download | yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar.gz yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar.bz2 yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar.lz yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar.xz yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.tar.zst yuzu-1f43e5296fcd2debaea672fd9740d2f07223406b.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 70eece9af..4e266cdad 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -1098,6 +1098,9 @@ void RasterizerOpenGL::SetupImage(u32 binding, const Tegra::Texture::TICEntry& t if (!tic.IsBuffer()) { view->ApplySwizzle(tic.x_source, tic.y_source, tic.z_source, tic.w_source); } + if (entry.IsWritten()) { + view->MarkAsModified(texture_cache.Tick()); + } state.images[binding] = view->GetTexture(); } |