Summary: | gl.detachShader breaks shader program | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | huscar | ||||||||
Component: | WebGL | Assignee: | Dean Jackson <dino> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | buildbot, dino, graouts, jonlee, kondapallykalyan, noam, rleider, roger_fong, sam, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | OS X 10.9 | ||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=98204 | ||||||||||
Attachments: |
|
Description
huscar
2014-10-14 04:50:14 PDT
I am unable to reproduce this. See the attached test case which both detaches and deletes the shaders after linking the program, but before they are used in a draw call (and before they are used to get attribute and uniform locations). Created attachment 318952 [details]
Testcase
Also, the original demo on flohofwoe doesn't seem to work any more, in any browser. It also downloads rather than running directly. Oops. My test case is bad. This is really broken. Created attachment 320217 [details]
Testcase
Better testcase. The triangle should be red.
Created attachment 320329 [details]
Patch
Comment on attachment 320329 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=320329&action=review > Source/WebCore/ChangeLog:20 > + This fixes the bug, but the whole area is still a bit messy. For one, > + we're keeping around all the shader information even after it is > + no longer used. Seems like we should have a bug tracking this issue. > Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:996 > + LinkedShaderMap::iterator result = m_linkedShaderMap.find(program); Use auto here? > Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:1053 > + LinkedShaderMap::iterator result = m_linkedShaderMap.find(program); auto? (In reply to Sam Weinig from comment #8) > > Seems like we should have a bug tracking this issue. > https://bugs.webkit.org/show_bug.cgi?id=98204 Committed r221831: <http://trac.webkit.org/changeset/221831> |