summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-14 17:43:25 +0200
committerbunnei <bunneidev@gmail.com>2018-09-30 20:31:57 +0200
commit2e1cdde994ee5384863ce596f2e613af8078c682 (patch)
tree9cf0006c33bd6d23e9d85cb5e170fb0912f08794
parentgl_rasterizer_cache: Workaround for Texture2D -> Texture2DArray scenario. (diff)
downloadyuzu-2e1cdde994ee5384863ce596f2e613af8078c682.tar
yuzu-2e1cdde994ee5384863ce596f2e613af8078c682.tar.gz
yuzu-2e1cdde994ee5384863ce596f2e613af8078c682.tar.bz2
yuzu-2e1cdde994ee5384863ce596f2e613af8078c682.tar.lz
yuzu-2e1cdde994ee5384863ce596f2e613af8078c682.tar.xz
yuzu-2e1cdde994ee5384863ce596f2e613af8078c682.tar.zst
yuzu-2e1cdde994ee5384863ce596f2e613af8078c682.zip
Diffstat (limited to '')
-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 {
/// Checks if surfaces are compatible for caching
bool IsCompatibleSurface(const SurfaceParams& other) const {
- return std::tie(pixel_format, type, width, height) ==
- std::tie(other.pixel_format, other.type, other.width, other.height);
+ return std::tie(pixel_format, type, width, height, target, depth) ==
+ std::tie(other.pixel_format, other.type, other.width, other.height, other.target,
+ other.depth);
}
VAddr addr;