On 11/26/2012 08:50 PM, ac [via jogamp] wrote:
> I found what it appears to be a regression caused by the fix. Querying the
> depth and stencil bits with glGetIntegerv (i.e: glGetIntegerv(GL_DEPTH_BITS,
> ...)), returns 0. tested with the autobuilds from Nov 25.
Well, this is more of a 'transparency' bug of the FBO offscreen implementation
I am afraid.
Even before, the returned values didn't reflect the actually used ones of the FBO,
but of the attached dummy framebuffer.
The true values of depth and stencil are provided by the chosen GLCapabilities.
We may file this as a bug in general for FBO offscreen usage, or mark it as a disclaimer.
Ofc .. we could intercept this query and return the actual FBO value ..
On the other side, these queries are deprecated in GL 3.3 and n/a in ES2 anyways,
hence I would vote for a 'disclaimer' only.
In short: Use the chosen GLCapabilities, as valid _after_
the GL context became current the 1st time. The context would have been current for
the GL query anyways, hence it doesn't pose a restriction here.
~Sven