2011-02-03 Zhenyao Mo <zmo@google.com>
authorzmo@google.com <zmo@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Feb 2011 17:29:36 +0000 (17:29 +0000)
committerzmo@google.com <zmo@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Feb 2011 17:29:36 +0000 (17:29 +0000)
commit6348830ff577be4053c80597d6edb8856c4fbb81
tree70b8e6c9f5b32aa092d8f3a0e26b556c72c57743
parent104943a68c482a35d9155ba646e6bf3d01fde6d7
2011-02-03  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Crash in glDrawArrays with NaCl crystal model
        https://bugs.webkit.org/show_bug.cgi?id=52831

        * html/canvas/WebGLRenderingContext.cpp: Allocate large enough buffer for atttrib0 if it's enabled and not used.
        (WebCore::WebGLRenderingContext::initVertexAttrib0):
        (WebCore::WebGLRenderingContext::simulateVertexAttrib0):
        * html/canvas/WebGLRenderingContext.h:
2011-02-03  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Crash in glDrawArrays with NaCl crystal model
        https://bugs.webkit.org/show_bug.cgi?id=52831

        * fast/canvas/webgl/gl-vertex-attrib-zero-issues-expected.txt: Added.
        * fast/canvas/webgl/gl-vertex-attrib-zero-issues.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/webgl/gl-vertex-attrib-zero-issues-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/webgl/gl-vertex-attrib-zero-issues.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/canvas/WebGLRenderingContext.cpp
Source/WebCore/html/canvas/WebGLRenderingContext.h