mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 04:24:28 +00:00
common loader: use RawLoader class immediately.
no need to find it here.
This commit is contained in:
parent
a4a323929f
commit
19b11277a0
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ shared_ptr<LoadModule> LoaderMgr::loader(const char* data, uint32_t size, bool c
|
|||
shared_ptr<LoadModule> LoaderMgr::loader(const uint32_t *data, uint32_t w, uint32_t h, bool copy)
|
||||
{
|
||||
//function is dedicated for raw images only
|
||||
auto loader = _find(static_cast<FileType>(FileType::Raw));
|
||||
auto loader = new RawLoader;
|
||||
if (loader) {
|
||||
if (loader->open(data, w, h, copy)) return shared_ptr<LoadModule>(loader);
|
||||
else delete(loader);
|
||||
|
|
Loading…
Add table
Reference in a new issue