Fixed base64 images not being translated to textures
This commit is contained in:
parent
300197e9c0
commit
06c723636a
1 changed files with 5 additions and 1 deletions
|
@ -1395,7 +1395,11 @@ texture create_texture_from_disk(const locator& loc)
|
|||
{
|
||||
switch(loc.get_type()) {
|
||||
case locator::FILE:
|
||||
return create_texture_from_file(loc);
|
||||
if(loc.is_data_uri()){
|
||||
return texture(load_image_data_uri(loc));
|
||||
} else {
|
||||
return create_texture_from_file(loc);
|
||||
}
|
||||
case locator::SUB_FILE:
|
||||
return create_texture_from_sub_file(loc);
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue