diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-14 17:43:25 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-09-30 20:31:57 +0200 |
commit | 2e1cdde994ee5384863ce596f2e613af8078c682 (patch) | |
tree | 9cf0006c33bd6d23e9d85cb5e170fb0912f08794 /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | gl_rasterizer_cache: Workaround for Texture2D -> Texture2DArray scenario. (diff) | |
download | yuzu-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 'src/video_core/renderer_opengl/gl_rasterizer_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 5 |
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; |