mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #4573 from lioncash/label
gl_texture_cache: Take std::string by reference in DecorateViewName()
This commit is contained in:
commit
b72d2069ba
|
@ -403,7 +403,7 @@ void CachedSurface::DecorateSurfaceName() {
|
||||||
LabelGLObject(GL_TEXTURE, texture.handle, GetGpuAddr(), params.TargetName());
|
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);
|
LabelGLObject(GL_TEXTURE, main_view.handle, gpu_addr, prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ public:
|
||||||
Tegra::Texture::SwizzleSource z_source,
|
Tegra::Texture::SwizzleSource z_source,
|
||||||
Tegra::Texture::SwizzleSource w_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) {
|
void MarkAsModified(u64 tick) {
|
||||||
surface.MarkAsModified(true, tick);
|
surface.MarkAsModified(true, tick);
|
||||||
|
|
Loading…
Reference in a new issue