From 3d2596f701a387f6f3f4059fab5ba08d46edaeb9 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Wed, 18 Jun 2025 16:21:07 +0800 Subject: [PATCH] [Optimization] (EGL_impl.cpp): don't copy the whole unordered_map --- MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp b/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp index 3987d01f..9a075c7b 100644 --- a/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp +++ b/MG/MG_GL/Implementations/EGL/Diligent/EGL_impl.cpp @@ -93,7 +93,7 @@ namespace MG_Diligent { GLFramebufferInfo& fbInfo) { uint64_t hash = 0; - MG_Global::unordered_map capabilities = commonState.capabilities; + auto& capabilities = commonState.capabilities; hash ^= std::hash()(commonState.blendSrcRGB); hash ^= std::hash()(commonState.blendDstRGB);