Several fixes related to PBR and Environment
This commit is contained in:
parent
0a6faeb4f5
commit
5567e898d1
21 changed files with 132 additions and 97 deletions
|
|
@ -89,7 +89,7 @@ Error jpeg_load_image_from_buffer(Image *p_image, const uint8_t *p_buffer, int p
|
|||
return OK;
|
||||
}
|
||||
|
||||
Error ImageLoaderJPG::load_image(Ref<Image> p_image, FileAccess *f) {
|
||||
Error ImageLoaderJPG::load_image(Ref<Image> p_image, FileAccess *f, bool p_force_linear) {
|
||||
|
||||
PoolVector<uint8_t> src_image;
|
||||
int src_image_len = f->get_len();
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
class ImageLoaderJPG : 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;
|
||||
ImageLoaderJPG();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue