summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/DeviceObjectBase.h2
1 files changed, 1 insertions, 1 deletions
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();