xbmc/xbmc — pull request #1807 by jmarshallnz (2012-11-16 23:36:37+00:00)
Title: Gles fixes for texture rendering

This fixes two things:

1. The SM_TEXTURE_NOBLEND shader is guishader_frag_texture_noblend.glsl which ignores the diffusecolor. Thus, we should use this shader only if the diffuse color is not 0xffffffff.

2. We should apply blending only if hasAlpha is true. In the multi-texture case we currently always set hasAlpha true, regardless of whether it is needed.

Both need testing on a GLES system. Ideally with a skin that uses diffusecolor with an unblended texture, such as Immersive: http://forum.xbmc.org/showthread.php?tid=139712 In addition, the reflected, blended textures in Confluence should ofcourse stay working (simple test for the hasAlpha change).