Several fixes related to PBR and Environment
This commit is contained in:
@@ -43,7 +43,7 @@ bool ImageFormatLoader::recognize(const String &p_extension) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
Error ImageLoader::load_image(String p_file, Ref<Image> p_image, FileAccess *p_custom) {
|
||||
Error ImageLoader::load_image(String p_file, Ref<Image> p_image, FileAccess *p_custom, bool p_force_linear) {
|
||||
ERR_FAIL_COND_V(p_image.is_null(), ERR_INVALID_PARAMETER);
|
||||
|
||||
FileAccess *f = p_custom;
|
||||
@@ -62,7 +62,7 @@ Error ImageLoader::load_image(String p_file, Ref<Image> p_image, FileAccess *p_c
|
||||
|
||||
if (!loader[i]->recognize(extension))
|
||||
continue;
|
||||
Error err = loader[i]->load_image(p_image, f);
|
||||
Error err = loader[i]->load_image(p_image, f, p_force_linear);
|
||||
|
||||
if (err != ERR_FILE_UNRECOGNIZED) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user