mirror of https://github.com/bkaradzic/bgfx
Set default shader debug name for embedded shaders.
This commit is contained in:
parent
96a1d0859b
commit
3c94fa9a65
|
@ -472,7 +472,13 @@ namespace bgfx
|
||||||
if (_type == esd->type
|
if (_type == esd->type
|
||||||
&& 1 < esd->size)
|
&& 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue