mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -462,13 +462,14 @@ namespace bgfx
|
||||
{
|
||||
for (const EmbeddedShader* es = _es; NULL != es->name; ++es)
|
||||
{
|
||||
if (0 == strcmp(_name, es->name))
|
||||
if (0 == strcmp(_name, es->name) )
|
||||
{
|
||||
for (const EmbeddedShader::Data* esd = es->data; RendererType::Count != esd->type; ++esd)
|
||||
{
|
||||
if (_type == esd->type)
|
||||
if (_type == esd->type
|
||||
&& 0 < esd->size)
|
||||
{
|
||||
return createShader(makeRef(esd->data, esd->size));
|
||||
return createShader(makeRef(esd->data, esd->size) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user