salty-engine
salty-engine copied to clipboard
[BUG] Image files cannot be loaded as SaltyVolatileImage
Describe the bug You cannot load image files (e.g. the SpriteSheets in the testing package) as SaltyVolatileImages, however, all the other images (lights, and the final render) are shwon as usual.
To Reproduce Steps to reproduce the behavior:
- Set SaltySystem#preferredImageType to ImageType.VOLATILE
- Run testing.Tester
Expected behavior The exact same thing as with ImageType.BUFFERED
Screenshots

Desktop:
- OS: MacOS
Additional context
Running 0.14.16-local
Setting the preferred image type to VOLATILE produces an even weirder result now.

Setting the preferred image type to
VOLATILEproduces an even weirder result now.
This still happens with SaltySystem.prefferedImageType = SaltySystem.ImageType.VOLATILE in 0.14.19
As because of this bug, SaltySystem.prefferedImageType has become irrelevant for development, I am no longer sure where it is even respected and where the library just produces 'SaltyBufferedImages' per default.
Using Salty Engine 0.15-SNAPSHOT, a prototype for my game renders very laggy with SaltySystem.prefferedImageType = SaltySystem.ImageType.VOLATILE and only shows custom rendered UI and a single sprite (which is the only one to have pixels with transparency != 0 or 1 - coincidence?)