Bug 51726

Summary: drawElements should raise INVALID_OPERATION if offset is not a multiple of the type size
Product: WebKit Reporter: Zhenyao Mo <zmo>
Component: WebGLAssignee: Zhenyao Mo <zmo>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, cmarrin, commit-queue, enne, eric, kbr, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Patch none

Description Zhenyao Mo 2010-12-29 14:59:30 PST
See WebGL spec section 6.3
Comment 1 Zhenyao Mo 2010-12-29 15:23:28 PST
After re-examine the code, it seems that this is already taken care of in WebGLRenderingContext::validateElementArraySize.

However, we don't have tests covering this behavior.  I'll add test cases.
Comment 2 Zhenyao Mo 2010-12-29 15:31:20 PST
Created attachment 77648 [details]
Patch
Comment 3 Eric Seidel (no email) 2010-12-29 18:38:03 PST
Comment on attachment 77648 [details]
Patch

I like test cases. :)
Comment 4 WebKit Commit Bot 2010-12-29 19:55:04 PST
Comment on attachment 77648 [details]
Patch

Clearing flags on attachment: 77648

Committed r74777: <http://trac.webkit.org/changeset/74777>
Comment 5 WebKit Commit Bot 2010-12-29 19:55:10 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 WebKit Review Bot 2010-12-29 20:54:06 PST
http://trac.webkit.org/changeset/74777 might have broken GTK Linux 64-bit Debug
The following tests are not passing:
editing/selection/extend-by-character-005.html