Fixing a stupid merge error that broke image loading

This commit is contained in:
Nathan Woods 2016-08-01 08:13:10 -04:00
parent 15e7be7ac8
commit 2d2a193c02

View File

@ -937,8 +937,6 @@ image_init_result device_image_interface::load_internal(const std::string &path,
set_image_filename(path); set_image_filename(path);
if (core_opens_image_file()) if (core_opens_image_file())
{
if (is_create)
{ {
// determine open plan // determine open plan
determine_open_plan(is_create, open_plan); determine_open_plan(is_create, open_plan);
@ -951,7 +949,6 @@ image_init_result device_image_interface::load_internal(const std::string &path,
if (m_err && (m_err != IMAGE_ERROR_FILENOTFOUND)) if (m_err && (m_err != IMAGE_ERROR_FILENOTFOUND))
goto done; goto done;
} }
}
// did we fail to find the file? // did we fail to find the file?
if (!is_loaded()) if (!is_loaded())