summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-17 07:24:08 +0200
committerGitHub <noreply@github.com>2020-04-17 07:24:08 +0200
commitca3af2961c5fcda9d3ef4938505bd148856e8176 (patch)
tree9a741f6e7aa76b45e0acb6b8f7095f8dad4b3d93 /src/video_core
parentMerge pull request #3671 from lioncash/switch (diff)
parentgl_query_cache: Resolve use-after-move in CachedQuery move assignment operator (diff)
downloadyuzu-ca3af2961c5fcda9d3ef4938505bd148856e8176.tar
yuzu-ca3af2961c5fcda9d3ef4938505bd148856e8176.tar.gz
yuzu-ca3af2961c5fcda9d3ef4938505bd148856e8176.tar.bz2
yuzu-ca3af2961c5fcda9d3ef4938505bd148856e8176.tar.lz
yuzu-ca3af2961c5fcda9d3ef4938505bd148856e8176.tar.xz
yuzu-ca3af2961c5fcda9d3ef4938505bd148856e8176.tar.zst
yuzu-ca3af2961c5fcda9d3ef4938505bd148856e8176.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_query_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_query_cache.cpp b/src/video_core/renderer_opengl/gl_query_cache.cpp
index f12e9f55f..d7ba57aca 100644
--- a/src/video_core/renderer_opengl/gl_query_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_query_cache.cpp
@@ -94,9 +94,9 @@ CachedQuery::CachedQuery(CachedQuery&& rhs) noexcept
: VideoCommon::CachedQueryBase<HostCounter>(std::move(rhs)), cache{rhs.cache}, type{rhs.type} {}
CachedQuery& CachedQuery::operator=(CachedQuery&& rhs) noexcept {
- VideoCommon::CachedQueryBase<HostCounter>::operator=(std::move(rhs));
cache = rhs.cache;
type = rhs.type;
+ CachedQueryBase<HostCounter>::operator=(std::move(rhs));
return *this;
}