2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:07:42 +00:00

Fix CInputGenerator, CRadarPaintShaderGLSL and CPhazonSuitFilterGLSL crashes

This commit is contained in:
2017-05-09 17:03:20 -07:00
parent e798fe49b4
commit c70a0d81cb
5 changed files with 6 additions and 5 deletions

View File

@@ -179,7 +179,8 @@ public:
if (!smashAdapter)
{
smashAdapter = std::dynamic_pointer_cast<boo::DolphinSmashAdapter>(tok.openAndGetDevice());
smashAdapter->setCallback(&m_dolphinCb);
if (smashAdapter)
smashAdapter->setCallback(&m_dolphinCb);
}
}
void deviceDisconnected(boo::DeviceToken&, boo::DeviceBase* device)