From ac4c589ab56af1ce44899868506b0c3e12b7f644 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Wed, 13 Dec 2017 12:04:17 -0700 Subject: [PATCH] Workaround for ICE on gcc5 --- src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 3939c86c2a..3798d9bb3c 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -872,7 +872,7 @@ Surface FindMatch(const SurfaceCache& surface_cache, const SurfaceParams& params for (auto& pair : RangeFromInterval(surface_cache, params.GetInterval())) { for (auto& surface : pair.second) { - const bool res_scale_matched = match_scale_type == ScaleMatch::Exact + bool res_scale_matched = match_scale_type == ScaleMatch::Exact ? (params.res_scale == surface->res_scale) : (params.res_scale <= surface->res_scale); // validity will be checked in GetCopyableInterval