refactor app and enable gles 3.0

This commit is contained in:
2017-03-04 19:04:08 +00:00
parent 11050fde9c
commit a2a221b17a
7 changed files with 127 additions and 83 deletions

View File

@@ -483,10 +483,10 @@ bool LayoutManager::load(const char* path)
auto id_str = current->Attribute("id");
if (!id_str)
{
printf("Layout node without id\n");
LOG("Layout node without id\n");
return false;
}
printf("Parsing layout: %s\n", id_str);
LOG("Parsing layout: %s\n", id_str);
uint16_t id = const_hash(id_str);
auto p = m_layouts.find(id);
if (p == m_layouts.end())
@@ -513,7 +513,7 @@ bool LayoutManager::load(const char* path)
}
else
{
printf("Layout id \"%s\" duplicated\n", id_str);
LOG("Layout id \"%s\" duplicated\n", id_str);
}
current = current->NextSiblingElement("layout");
}