Bug 67632 - depthRange, zNear should not exceed zFar
Summary: depthRange, zNear should not exceed zFar
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Trivial
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 00:43 PDT by Tapani Pälli
Modified: 2011-09-06 15:45 PDT (History)
1 user (show)

See Also:


Attachments
check for DepthRange (475 bytes, patch)
2011-09-06 01:04 PDT, Tapani Pälli
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tapani Pälli 2011-09-06 00:43:33 PDT
WebGL specification states that zNear should not be greater than zFar when calling depthRange.

Attached patch modifies GraphicsContext3DOpenGL to synthesize INVALID_VALUE as per spec.
Comment 1 Tapani Pälli 2011-09-06 01:01:48 PDT
CC Chris for comments
Comment 2 Tapani Pälli 2011-09-06 01:04:16 PDT
Created attachment 106397 [details]
check for DepthRange
Comment 3 Tapani Pälli 2011-09-06 01:15:24 PDT
sorry for the noise :/ now I see WebGLRenderingContext has the appropriate checks.
Comment 4 Eric Seidel (no email) 2011-09-06 15:45:51 PDT
Comment on attachment 106397 [details]
check for DepthRange

Cleared review? from attachment 106397 [details] so that this bug does not appear in http://webkit.org/pending-review.  If you would like this patch reviewed, please attach it to a new bug (or re-open this bug before marking it for review again).