diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-02-16 08:55:11 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-02-16 08:55:43 -0300 |
commit | 903a3aa5f0e128abb1fb752c10b343b34af8f799 (patch) | |
tree | b1dddad8ee9a0a984559fe1260e23c0b908e0cd5 /scene/resources/texture.cpp | |
parent | 3fadcac7c42f97fded2af88fe2cf72ff7b0f4d71 (diff) | |
download | redot-engine-903a3aa5f0e128abb1fb752c10b343b34af8f799.tar.gz |
a ton of bug fixes to the renderer
Diffstat (limited to 'scene/resources/texture.cpp')
-rw-r--r-- | scene/resources/texture.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index e3a856ad4f..62feb7b37c 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -559,6 +559,11 @@ Error StreamTexture::_load_data(const String& p_path,int &tw,int &th,int& flags, int total_size=0; for(int i=0;i<mipmaps;i++) { + + if (i>0) { + size = f->get_32(); + } + PoolVector<uint8_t> pv; pv.resize(size); { |