Set default shader debug name for embedded shaders.

This commit is contained in:
Branimir Karadžić 2017-10-11 15:25:58 -07:00
parent 96a1d0859b
commit 3c94fa9a65
1 changed files with 7 additions and 1 deletions

View File

@ -472,7 +472,13 @@ namespace bgfx
if (_type == esd->type
&& 1 < esd->size)
{
return createShader(makeRef(esd->data, esd->size) );
ShaderHandle handle = createShader(makeRef(esd->data, esd->size) );
if (isValid(handle) )
{
setName(handle, _name);
}
return handle;
}
}
}