Image now properly save it's colorSpace when saved
This commit is contained in:
parent
ad4634ce04
commit
822d327236
@ -1041,6 +1041,7 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ {
|
|||||||
capsule.write(mipMapSizes, "mipMapSizes", null);
|
capsule.write(mipMapSizes, "mipMapSizes", null);
|
||||||
capsule.write(multiSamples, "multiSamples", 1);
|
capsule.write(multiSamples, "multiSamples", 1);
|
||||||
capsule.writeByteBufferArrayList(data, "data", null);
|
capsule.writeByteBufferArrayList(data, "data", null);
|
||||||
|
capsule.write(colorSpace, "colorSpace", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void read(JmeImporter e) throws IOException {
|
public void read(JmeImporter e) throws IOException {
|
||||||
@ -1052,6 +1053,7 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ {
|
|||||||
mipMapSizes = capsule.readIntArray("mipMapSizes", null);
|
mipMapSizes = capsule.readIntArray("mipMapSizes", null);
|
||||||
multiSamples = capsule.readInt("multiSamples", 1);
|
multiSamples = capsule.readInt("multiSamples", 1);
|
||||||
data = (ArrayList<ByteBuffer>) capsule.readByteBufferArrayList("data", null);
|
data = (ArrayList<ByteBuffer>) capsule.readByteBufferArrayList("data", null);
|
||||||
|
colorSpace = capsule.readEnum("colorSpace", ColorSpace.class, null);
|
||||||
|
|
||||||
if (mipMapSizes != null) {
|
if (mipMapSizes != null) {
|
||||||
needGeneratedMips = false;
|
needGeneratedMips = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user