[Webkit-unassigned] [Bug 58498] WebGL should create a single-sample context if creating multisampled context fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 17 12:09:34 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=58498





--- Comment #2 from Zhenyao Mo <zmo at google.com>  2011-06-17 12:09:34 PST ---
One place you can look at is webcore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp, reshape function.

In that function, if m_attrs.antialias is true, then we try to create a multisampled FBO for rendering.

Currently that code path doesn't recover from error.  So what we need to do is

1) check if creation of multisampled FBO succeeds or not.
2) if it failed, set m_attrs.antialias = false, and try again.

One thing unclear to me is that it seems attributes.antialias might change in the lifetime of a context.  I am not sure if it's OK or not.

Hope this helps.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list