From 3452eb6fe6c1a7f4994652e898d839d4e3fda7a3 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 27 Dec 2018 08:52:19 -0800 Subject: Fix for memory access violation when reading debug name from d3d11 textures --- Graphics/GraphicsEngine/include/DeviceObjectBase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/DeviceObjectBase.h b/Graphics/GraphicsEngine/include/DeviceObjectBase.h index f9a53979..3ad1ef85 100644 --- a/Graphics/GraphicsEngine/include/DeviceObjectBase.h +++ b/Graphics/GraphicsEngine/include/DeviceObjectBase.h @@ -55,7 +55,7 @@ public: // Do not keep strong reference to the device if the object is an internal device object m_spDevice (bIsDeviceInternal ? nullptr : pDevice), m_pDevice (pDevice), - m_ObjectNameCopy(ObjDesc.Name ? ObjDesc.Name : ThisToString()), + m_ObjectNameCopy(ObjDesc.Name ? String{ObjDesc.Name} : ThisToString()), m_Desc (ObjDesc) { m_Desc.Name = m_ObjectNameCopy.c_str(); -- cgit v1.2.3