Commit 1bc644a1 authored by Nianchen Deng's avatar Nianchen Deng
Browse files

sync

parent 6294701e
...@@ -117,8 +117,7 @@ void Net::_deserialize(const std::string &path) ...@@ -117,8 +117,7 @@ void Net::_deserialize(const std::string &path)
std::vector<void *> Net::_getBindings() std::vector<void *> Net::_getBindings()
{ {
std::vector<void *> bindings(mEngine->getNbBindings()); std::vector<void *> bindings(mEngine->getNbBindings());
for (auto it = mResources.resources.begin(); for (auto it = mResources.resources.begin(); it != mResources.resources.end(); ++it)
it != mResources.resources.end(); ++it)
{ {
auto idx = mEngine->getBindingIndex(it->first.c_str()); auto idx = mEngine->getBindingIndex(it->first.c_str());
if (idx < 0) if (idx < 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment