>> + } else {
>> + const struct st_texture_image *firstImage =
>> +
>> st_texture_image(stObj->base.Image[0][stObj->base.BaseLevel]);
>> + texFormat = firstImage->base.TexFormat;
>> + }
>> + firstImageFormat = st_mesa_format_to_pipe_format(texFormat);
>
>
> I haven't double-checked, but I thought we had a utility function for
> getting a texture's format using code like that.
I can't find one,, not sure I've seen this pattern anywhere else, at
least a grep for BufferObjectFormat doesn't hit it.
removed the blank line as well.
Thanks,
Dave.
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev