This commit is contained in:
Branimir Karadžić 2014-11-12 22:16:19 -08:00
parent e147e7b2e6
commit 545978d661
2 changed files with 11 additions and 2 deletions

View file

@ -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)

View file

@ -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;
}