SDL2 texture blend help

Ivan Trombley itrombley at dot-borg.org
Tue Dec 12 03:32:05 UTC 2017


It turns out that it's an issue with the color channels being in 
sRGB color space and the alpha channel being linear. I verified 
this by doing a software blend of the images and then doing 
another software blend using gamma corrected values.

There's a setting in opengl to correct for it, 
glEnable(GL_FRAMEBUFFER_SRGB), but I haven't tried this yet.


More information about the Digitalmars-d mailing list