Files
love/src/common
Sasha Szpakowski 8c13943f64 ImageData can track whether they're meant to be loaded into a Texture with a non-sRGB format when gamma correct rendering is enabled.
Fixes #1556.

* Add ImageData/CompressedImageData:setLinear and ImageData/CompressedImageData:isLinear.
  The flag is used as a hint when loading a texture from the data to determine if the format should not be treated as sRGB-encoded. The 'linear' flag in newImage overrides this.

* love.graphics.readbackTexture automatically sets the linear flag on ImageData it returns when the texture's format is linear.
  This allows an ImageData generated via readback to be fed back into a new Texture and the format will match the original Canvas.

* Also clean up some image decoding code.
2023-10-14 20:48:21 -03:00
..
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2023-02-11 16:29:24 -04:00
2022-12-31 22:25:49 -04:00
2023-02-11 16:29:24 -04:00
2022-12-31 22:25:49 -04:00
2022-12-31 22:25:49 -04:00
2023-04-15 09:37:22 -03:00