Bug 48676 - depthRange should generate INVALID_OPERATION if zNear is greater than zFar
Summary: depthRange should generate INVALID_OPERATION if zNear is greater than zFar
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Zhenyao Mo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-29 14:18 PDT by Zhenyao Mo
Modified: 2010-11-03 17:49 PDT (History)
3 users (show)

See Also:


Attachments
patch (3.70 KB, patch)
2010-11-03 17:26 PDT, Zhenyao Mo
kbr: review+
zmo: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>