summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-14 11:43:25 -0400
committerbunnei <bunneidev@gmail.com>2018-09-30 14:31:57 -0400
commit2e1cdde994ee5384863ce596f2e613af8078c682 (patch)
tree9cf0006c33bd6d23e9d85cb5e170fb0912f08794
parentfefb003b23ab4a7be28e7bb0e8a8fa9802b3cb1a (diff)
gl_rasterizer_cache: Track texture target and depth in the cache.
-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;