http://bugs.freedesktop.org/show_bug.cgi?id=24049





--- Comment #3 from Stefan Dösinger <[email protected]>  2009-09-21 
10:44:34 PST ---
A while ago a Mesa user reported a segfault in the Wine code to us, which was
caused by what we believe is a bug in the mesa code. glCheckFramebufferStatus()
returned 0 instead of one of the error codes in defined in
EXT_framebuffer_object. This happened when no framebuffer object was bound(ie,
the onscreen framebuffer was used, which should always be complete).
glGetError() returns 0 as well, although if glCheckFramebufferStatus returns 0
an error code should be set.

Wine has a code like this:

ret = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT);
if(ret == GL_FRAMEBUFFER_COMPLETE) {
    TRACE("Framebuffer OK\n");
} else {
    ERR("Framebuffer invalid\n");
    dump_framebuffer(context->current_fb);
}

context->current_fb is a Wine structure, and it is NULL when we're not
rendering to a FBO. Since the onscreen buffer isn't complete, Wine tries to
dump the nonexistant offscreen rendering configuration and thus segfaults.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to