|
|
@ -143,7 +143,8 @@ public class TextureBlenderAWT extends AbstractTextureBlender { |
|
|
|
dataArray.add(newData); |
|
|
|
dataArray.add(newData); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Image result = depth > 1 ? new Image(Format.RGBA8, width, height, depth, dataArray, ColorSpace.Linear) : new Image(Format.RGBA8, width, height, dataArray.get(0), ColorSpace.Linear); |
|
|
|
ColorSpace colorSpace = baseImage.getColorSpace() != null ? baseImage.getColorSpace() : ColorSpace.Linear; |
|
|
|
|
|
|
|
Image result = depth > 1 ? new Image(Format.RGBA8, width, height, depth, dataArray, colorSpace) : new Image(Format.RGBA8, width, height, dataArray.get(0), colorSpace); |
|
|
|
if (image.getMipMapSizes() != null) { |
|
|
|
if (image.getMipMapSizes() != null) { |
|
|
|
result.setMipMapSizes(image.getMipMapSizes().clone()); |
|
|
|
result.setMipMapSizes(image.getMipMapSizes().clone()); |
|
|
|
} |
|
|
|
} |
|
|
|