summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer_cache.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-12 02:12:29 +0200
committerbunnei <bunneidev@gmail.com>2018-09-12 02:12:29 +0200
commitcdddd71d0890a9669ea5003207bf1390db8622ad (patch)
treecadd78ed1e1d464a42cb0ad78a7d0e8334b486c8 /src/video_core/renderer_opengl/gl_rasterizer_cache.h
parentMerge pull request #1291 from lioncash/default (diff)
downloadyuzu-cdddd71d0890a9669ea5003207bf1390db8622ad.tar
yuzu-cdddd71d0890a9669ea5003207bf1390db8622ad.tar.gz
yuzu-cdddd71d0890a9669ea5003207bf1390db8622ad.tar.bz2
yuzu-cdddd71d0890a9669ea5003207bf1390db8622ad.tar.lz
yuzu-cdddd71d0890a9669ea5003207bf1390db8622ad.tar.xz
yuzu-cdddd71d0890a9669ea5003207bf1390db8622ad.tar.zst
yuzu-cdddd71d0890a9669ea5003207bf1390db8622ad.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.h')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index e660998d0..57ea8593b 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -680,8 +680,8 @@ struct SurfaceParams {
/// Checks if surfaces are compatible for caching
bool IsCompatibleSurface(const SurfaceParams& other) const {
- return std::tie(pixel_format, type, cache_width, cache_height) ==
- std::tie(other.pixel_format, other.type, other.cache_width, other.cache_height);
+ return std::tie(pixel_format, type, width, height) ==
+ std::tie(other.pixel_format, other.type, other.width, other.height);
}
VAddr addr;
@@ -696,10 +696,6 @@ struct SurfaceParams {
u32 unaligned_height;
size_t size_in_bytes;
SurfaceTarget target;
-
- // Parameters used for caching only
- u32 cache_width;
- u32 cache_height;
};
}; // namespace OpenGL