6

Optimized some code yesterday to speed up writes and reads to the various channels of a pixel of an image.

One of the changes was to directly modify the original image, instead of copying the modded pixels to a new image.

Code stopped working.

After a day of debugging and going insane since the methods that had to be working were in fact working, I decided to check whether the image I was loading had an alpha channel, which my program wrote to and read from.

No alpha channel. Some days I feel like a complete fool.

Comments
Add Comment