summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-08-24 06:40:22 +0200
committerGitHub <noreply@github.com>2020-08-24 06:40:22 +0200
commitb72d2069babe9e7ec103e4bc1357cc474982a6df (patch)
tree9a22c0256e42de23322b61b594da844c5e2be4ce
parentMerge pull request #4571 from lioncash/fence (diff)
parentgl_texture_cache: Take std::string by reference in DecorateViewName() (diff)
downloadyuzu-b72d2069babe9e7ec103e4bc1357cc474982a6df.tar
yuzu-b72d2069babe9e7ec103e4bc1357cc474982a6df.tar.gz
yuzu-b72d2069babe9e7ec103e4bc1357cc474982a6df.tar.bz2
yuzu-b72d2069babe9e7ec103e4bc1357cc474982a6df.tar.lz
yuzu-b72d2069babe9e7ec103e4bc1357cc474982a6df.tar.xz
yuzu-b72d2069babe9e7ec103e4bc1357cc474982a6df.tar.zst
yuzu-b72d2069babe9e7ec103e4bc1357cc474982a6df.zip
-rw-r--r--src/video_core/renderer_opengl/gl_texture_cache.cpp2
-rw-r--r--src/video_core/renderer_opengl/gl_texture_cache.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp
index 0a7bc9e2b..f403f388a 100644
--- a/src/video_core/renderer_opengl/gl_texture_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp
@@ -403,7 +403,7 @@ void CachedSurface::DecorateSurfaceName() {
LabelGLObject(GL_TEXTURE, texture.handle, GetGpuAddr(), params.TargetName());
}
-void CachedSurfaceView::DecorateViewName(GPUVAddr gpu_addr, std::string prefix) {
+void CachedSurfaceView::DecorateViewName(GPUVAddr gpu_addr, const std::string& prefix) {
LabelGLObject(GL_TEXTURE, main_view.handle, gpu_addr, prefix);
}
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h
index bfc4ddf5d..de8f18489 100644
--- a/src/video_core/renderer_opengl/gl_texture_cache.h
+++ b/src/video_core/renderer_opengl/gl_texture_cache.h
@@ -90,7 +90,7 @@ public:
Tegra::Texture::SwizzleSource z_source,
Tegra::Texture::SwizzleSource w_source);
- void DecorateViewName(GPUVAddr gpu_addr, std::string prefix);
+ void DecorateViewName(GPUVAddr gpu_addr, const std::string& prefix);
void MarkAsModified(u64 tick) {
surface.MarkAsModified(true, tick);