Changeset 71123 in webkit


Ignore:
Timestamp:
Nov 2, 2010 9:44:27 AM (13 years ago)
Author:
zmo@google.com
Message:

2010-11-01 Zhenyao Mo <zmo@google.com>

Reviewed by Andreas Kling.

vertexAttribPointer should generate INVALID_VALUE if the stride exceeds 255
https://bugs.webkit.org/show_bug.cgi?id=48677

Test: fast/canvas/webgl/gl-vertexattribpointer.html

  • html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::vertexAttribPointer): Generate INVALID_VALUE if stride > 255.

2010-11-01 Zhenyao Mo <zmo@google.com>

Reviewed by Andreas Kling.

vertexAttribPointer should generate INVALID_VALUE if the stride exceeds 255
https://bugs.webkit.org/show_bug.cgi?id=48677

  • fast/canvas/webgl/gl-vertexattribpointer-expected.txt: Added.
  • fast/canvas/webgl/gl-vertexattribpointer.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r71121 r71123  
     12010-11-01  Zhenyao Mo  <zmo@google.com>
     2
     3        Reviewed by Andreas Kling.
     4
     5        vertexAttribPointer should generate INVALID_VALUE if the stride exceeds 255
     6        https://bugs.webkit.org/show_bug.cgi?id=48677
     7
     8        * fast/canvas/webgl/gl-vertexattribpointer-expected.txt: Added.
     9        * fast/canvas/webgl/gl-vertexattribpointer.html: Added.
     10
    1112010-11-02  Stephen White  <senorblanco@chromium.org>
    212
  • trunk/WebCore/ChangeLog

    r71119 r71123  
     12010-11-01  Zhenyao Mo  <zmo@google.com>
     2
     3        Reviewed by Andreas Kling.
     4
     5        vertexAttribPointer should generate INVALID_VALUE if the stride exceeds 255
     6        https://bugs.webkit.org/show_bug.cgi?id=48677
     7
     8        Test: fast/canvas/webgl/gl-vertexattribpointer.html
     9
     10        * html/canvas/WebGLRenderingContext.cpp:
     11        (WebCore::WebGLRenderingContext::vertexAttribPointer): Generate INVALID_VALUE if stride > 255.
     12
    1132010-11-01  Martin Robinson  <mrobinson@igalia.com>
    214
  • trunk/WebCore/html/canvas/WebGLRenderingContext.cpp

    r70867 r71123  
    28462846        return;
    28472847    }
    2848     if (size < 1 || size > 4 || stride < 0 || offset < 0) {
     2848    if (size < 1 || size > 4 || stride < 0 || stride > 255 || offset < 0) {
    28492849        m_context->synthesizeGLError(GraphicsContext3D::INVALID_VALUE);
    28502850        return;
Note: See TracChangeset for help on using the changeset viewer.