Bug 126468

Summary: [WebGL] CGLPixelFormat should specify SampleBuffer and Sample count when using MSAA
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebGLAssignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, dino, kondapallykalyan, roger_fong, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: All   
Attachments:
Description Flags
Patch none

Brent Fulgham
Reported 2014-01-03 15:49:51 PST
I found this while trying to debug the failure of webgl/1.0.2/resources/webgl_test_files/conformance/rendering/gl-scissor-test.html. The WebGL code assumes we are using multisampling when the WebGL "antialias" attribute is set, but the Mac port does not enable these flags in the underlying CGPixelFormat for the OpenGL context. This causes the gl-scissor-test to render garbage for the "antialias" case.
Attachments
Patch (4.19 KB, patch)
2014-01-03 15:53 PST, Brent Fulgham
no flags
Brent Fulgham
Comment 1 2014-01-03 15:53:32 PST
Dean Jackson
Comment 2 2014-01-03 16:10:27 PST
Comment on attachment 220348 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220348&action=review > Source/WebCore/platform/graphics/mac/GraphicsContext3DMac.mm:145 > + bool useMultisampling = m_attrs.antialias; > + > + setPixelFormat(attribs, 32, 32, !attrs.forceSoftwareRenderer, true, false, useMultisampling); This preserves our existing behaviour to request supersampling when anti-aliasing was false. I guess that's ok.
Brent Fulgham
Comment 3 2014-01-03 16:16:34 PST
Comment on attachment 220348 [details] Patch Clearing flags on attachment: 220348 Committed r161294: <http://trac.webkit.org/changeset/161294>
Brent Fulgham
Comment 4 2014-01-03 16:16:36 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 5 2014-01-03 16:16:41 PST
Note You need to log in before you can comment on or make changes to this bug.