On Fri, Nov 13, 2015 at 1:12 PM, Ben Widawsky <b...@bwidawsk.net> wrote:
> On Thu, Nov 12, 2015 at 04:54:08PM +0100, Neil Roberts wrote:
>> +   default:
>> +      for (int i = 0; i < 3; i++) {
>> +         if (!_mesa_format_has_color_component(format, i))
>> +            override_color.ui[i] = 0;
>> +      }
>
> Is there an easy way to verify that all formats want 0 for GB channels? It 
> looks

AFAIK that's true for GL, not DX.

> right to me, but with my knowledge of GL, that doesn't mean much (I am looking
> here: https://www.opengl.org/sdk/docs/man/html/glTexImage2D.xhtml)
>
> I also think that component 0 must always have a color, right? (I'm not
> requesting a change as such, just making sure my understanding of what you're
> trying to do is correct).

GL_ALPHA gets a 0 into rgb :)
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to