[Mesa-dev] [PATCH 1/5] mesa: Track number of layers in layered framebuffers.

Paul Berry stereotype441 at gmail.com
Wed Nov 20 11:05:01 PST 2013


On 19 November 2013 22:22, Chris Forbes <chrisf at ijw.co.nz> wrote:

> +   if (layer_count > 0) {
> +      fb->NumLayers = layer_count;
>
> It seems like in the nonlayered case there will just be junk left in
> fb->NumLayers, which might trip people up in future?
>

Yeah, that's a fair critique.  On further reflection, it seems silly to
have both NumLayers and Layered in gl_framebuffer.  I'll follow up with a
v2 patch that eliminates the Layered boolean, and stores 0 for NumLayers
when the framebuffer is unlayered.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131120/912750dc/attachment.html>


More information about the mesa-dev mailing list