mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Optimization] (EGL_impl.cpp): don't copy the whole unordered_map
This commit is contained in:
@@ -93,7 +93,7 @@ namespace MG_Diligent {
|
|||||||
GLFramebufferInfo& fbInfo) {
|
GLFramebufferInfo& fbInfo) {
|
||||||
uint64_t hash = 0;
|
uint64_t hash = 0;
|
||||||
|
|
||||||
MG_Global::unordered_map<GLenum, bool> capabilities = commonState.capabilities;
|
auto& capabilities = commonState.capabilities;
|
||||||
|
|
||||||
hash ^= std::hash<uint32_t>()(commonState.blendSrcRGB);
|
hash ^= std::hash<uint32_t>()(commonState.blendSrcRGB);
|
||||||
hash ^= std::hash<uint32_t>()(commonState.blendDstRGB);
|
hash ^= std::hash<uint32_t>()(commonState.blendDstRGB);
|
||||||
|
|||||||
Reference in New Issue
Block a user