[DEV] update to the new ETK allocator wrapper

This commit is contained in:
Edouard DUPIN 2017-10-21 19:05:21 +02:00
parent 861f59061f
commit 10be74f158
2 changed files with 1 additions and 2 deletions

View File

@ -121,7 +121,6 @@ void egami::Image::configure(const ivec2& _size, enum colorType _type) {
m_data = nullptr;
break;
case egami::colorType::RGBA8:
//m_data = ememory::makeShared<egami::ImagePrivate>(new egami::ImageTemplate<etk::Color<uint8_t>>(_size));
m_data = ememory::makeShared<egami::ImageTemplate<etk::Color<uint8_t, 4>>>(_size);
break;
case egami::colorType::RGB8:

View File

@ -111,7 +111,7 @@ class MainApplication : public ewol::context::Application {
*/
int main(int _argc, const char *_argv[]) {
// second possibility
return ewol::run(new MainApplication(), _argc, _argv);
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
}