[Mesa-dev] [PATCH 2/8] mesa: Use accessor for stencil reference values in glGet

Chris Forbes chrisf at ijw.co.nz
Mon May 20 18:55:21 PDT 2013


Hi Brian,

Are you sure NVIDIA's behavior here is correct? The spec says ref is
clamped for queries:

>From the GL 4.3 spec, 17.3.5:
    "Stencil comparison operations and queries of <ref> clamp its value
    to the range [0, 2^s-1], where <s> is the number of bits in the
    stencil buffer attached to the draw framebuffer."

-- Chris


More information about the mesa-dev mailing list