Several fixes related to PBR and Environment
This commit is contained in:
@ -115,7 +115,7 @@ static Ref<Image> _webp_lossy_unpack(const PoolVector<uint8_t> &p_buffer) {
|
||||
return img;
|
||||
}
|
||||
|
||||
Error ImageLoaderWEBP::load_image(Ref<Image> p_image, FileAccess *f) {
|
||||
Error ImageLoaderWEBP::load_image(Ref<Image> p_image, FileAccess *f, bool p_force_linear) {
|
||||
|
||||
uint32_t size = f->get_len();
|
||||
PoolVector<uint8_t> src_image;
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
class ImageLoaderWEBP : public ImageFormatLoader {
|
||||
|
||||
public:
|
||||
virtual Error load_image(Ref<Image> p_image, FileAccess *f);
|
||||
virtual Error load_image(Ref<Image> p_image, FileAccess *f, bool p_force_linear);
|
||||
virtual void get_recognized_extensions(List<String> *p_extensions) const;
|
||||
ImageLoaderWEBP();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user