Limit prefilling with color to textures with alpha channel
authorH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 21 Apr 2016 21:11:25 +0000 (23:11 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 8 May 2016 12:06:33 +0000 (14:06 +0200)
commit872b20da5cf2cdde8652b372b65be2984a41d76c
tree4d20f0fa692ab1319f365bc6f50b0f0956f670c2
parent077968e4416346f9e4e8576d72ccc98d84c598d8
Limit prefilling with color to textures with alpha channel

When loading and preparing a texture we now test the format, and if
the image has an alpha channel we stay on the save side, and always
color the squares before drawing the texture. Only when the format
is not ARGB32 we skip the color fill. (And the default textures
do not have an alpha channel, so at least there no time will be
wasted on pointless color fills.)
draw.c