Pressing "Reset all edits" in edit-ui results in empty image
Describe the bug Pressing "Reset all edits" in edit-ui results in empty image. This will create a panic due to zero division in TextureWrapper.
To Reproduce Steps to reproduce the behavior:
- Start Oculante
- Load an image
- Open edit ui
- Press "Reset all edits"
- Panic...
Expected behavior Resetting all edits should trigger switching back to the original texture and disabling the display button for the edited image in the compare section.
Found this while working on #469, therefore zero texture size supression was implemented in the fix. If #471 is merged, the Bug mentioned will result in an empty screen.
If I remember correctly, there are result_pixel_opand result_image_op for caching reasons which should be set to 0 if the EditState is reset. In the past, they would be filled with the original image on the next frame so I can see how that became a problem...
Seems to be fixed.