summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-09-14 11:43:25 -0400
committerGravatar bunnei2018-09-30 14:31:57 -0400
commit2e1cdde994ee5384863ce596f2e613af8078c682 (patch)
tree9cf0006c33bd6d23e9d85cb5e170fb0912f08794 /src
parentgl_rasterizer_cache: Workaround for Texture2D -> Texture2DArray scenario. (diff)
downloadyuzu-2e1cdde994ee5384863ce596f2e613af8078c682.tar.gz
yuzu-2e1cdde994ee5384863ce596f2e613af8078c682.tar.xz
yuzu-2e1cdde994ee5384863ce596f2e613af8078c682.zip
gl_rasterizer_cache: Track texture target and depth in the cache.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index 6474d9129..2aed83bbc 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -718,8 +718,9 @@ struct SurfaceParams {
718 718
719 /// Checks if surfaces are compatible for caching 719 /// Checks if surfaces are compatible for caching
720 bool IsCompatibleSurface(const SurfaceParams& other) const { 720 bool IsCompatibleSurface(const SurfaceParams& other) const {
721 return std::tie(pixel_format, type, width, height) == 721 return std::tie(pixel_format, type, width, height, target, depth) ==
722 std::tie(other.pixel_format, other.type, other.width, other.height); 722 std::tie(other.pixel_format, other.type, other.width, other.height, other.target,
723 other.depth);
723 } 724 }
724 725
725 VAddr addr; 726 VAddr addr;