mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Cleanup.
This commit is contained in:
parent
e147e7b2e6
commit
545978d661
2 changed files with 11 additions and 2 deletions
|
@ -157,7 +157,11 @@ struct Input
|
|||
|
||||
void removeBindings(const char* _name)
|
||||
{
|
||||
m_inputBindingsMap.erase(m_inputBindingsMap.find(_name));
|
||||
InputBindingMap::iterator it = m_inputBindingsMap.find(_name);
|
||||
if (it != m_inputBindingsMap.end() )
|
||||
{
|
||||
m_inputBindingsMap.erase(it);
|
||||
}
|
||||
}
|
||||
|
||||
void process(const InputBinding* _bindings)
|
||||
|
|
|
@ -2223,7 +2223,12 @@ namespace bgfx
|
|||
&& BGFX_CHUNK_MAGIC_FSH != magic
|
||||
&& BGFX_CHUNK_MAGIC_VSH != magic)
|
||||
{
|
||||
BX_WARN(false, "Invalid shader signature! 0x%08x.", magic);
|
||||
BX_WARN(false, "Invalid shader signature! %c%c%c%d."
|
||||
, ( (uint8_t*)&magic)[0]
|
||||
, ( (uint8_t*)&magic)[1]
|
||||
, ( (uint8_t*)&magic)[2]
|
||||
, ( (uint8_t*)&magic)[3]
|
||||
);
|
||||
ShaderHandle invalid = BGFX_INVALID_HANDLE;
|
||||
return invalid;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue