Bug 48676

Summary: depthRange should generate INVALID_OPERATION if zNear is greater than zFar
Product: WebKit Reporter: Zhenyao Mo <zmo>
Component: WebGLAssignee: Zhenyao Mo <zmo>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarrin, enne, kbr
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
patch kbr: review+, zmo: commit-queue-

Description Zhenyao Mo 2010-10-29 14:18:32 PDT
WebGL spec:

6.7 Viewport Depth Range

The WebGL API does not support depth ranges with where the near plane is mapped to a value greater than that of the far plane. A call to depthRange will generate an INVALID_OPERATION error if zNear is greater than zFar.
Comment 1 Zhenyao Mo 2010-11-03 17:26:38 PDT
Created attachment 72888 [details]
patch

Fixing those super easy bugs are so much fun
Comment 2 Kenneth Russell 2010-11-03 17:40:03 PDT
Comment on attachment 72888 [details]
patch

Looks good.
Comment 3 Zhenyao Mo 2010-11-03 17:49:47 PDT
Committed r71291: <http://trac.webkit.org/changeset/71291>