[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jun 14 12:45:41 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=38312
Ian Romanick <idr at freedesktop.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |NEEDINFO
--- Comment #3 from Ian Romanick <idr at freedesktop.org> 2011-06-14 12:45:41 PDT ---
(In reply to comment #0)
> This comes from https://bugzilla.mozilla.org/show_bug.cgi?id=659842#c64
>
> This seems to be a swrast bug, but I didn't find the bugzilla component for it.
>
> I have code like this:
>
> glBindFramebuffer(...some arguments...);
> glFramebufferRenderbuffer(...some arguments...);
> GLenum error = glGetError();
> if (error != GL_NO_ERROR)
> exit(1);
> // no GL error at this point
> GLint framebuffer;
> glGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, &framebuffer);
> if (!framebuffer)
> printf("WTF???\n");
>
> The bug is that the WTF line is reached. Since glBindFramebuffer and
> glFramebufferRenderbuffer succeeded, for sure we have a FBO bound. So it's a
> bug that glGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, &result) returns 0.
Questions:
1. In the 'if (!framebuffer)' case, is there a GL error?
2. If you initialize framebuffer to, say, 0xDEADBEEF before calling
glGetIntegerv, is it still 0 after?
3. Does this still happen with more recent bits? Mesa 7.10.3 was released
yesterday.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list