Fixed base64 images not being translated to textures

This commit is contained in:
Charles Dang 2018-07-15 21:33:00 +11:00
parent 300197e9c0
commit 06c723636a

View file

@ -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: