Changeset 71291 in webkit


Ignore:
Timestamp:
Nov 3, 2010 5:49:21 PM (13 years ago)
Author:
zmo@google.com
Message:

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

Reviewed by Kenneth Russell.

depthRange should generate INVALID_OPERATION if zNear is greater than zFar
https://bugs.webkit.org/show_bug.cgi?id=48676

  • html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::depthRange):

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

Reviewed by Kenneth Russell.

depthRange should generate INVALID_OPERATION if zNear is greater than zFar
https://bugs.webkit.org/show_bug.cgi?id=48676

  • fast/canvas/webgl/webgl-specific-expected.txt:
  • fast/canvas/webgl/webgl-specific.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r71290 r71291  
     12010-11-03  Zhenyao Mo  <zmo@google.com>
     2
     3        Reviewed by Kenneth Russell.
     4
     5        depthRange should generate INVALID_OPERATION if zNear is greater than zFar
     6        https://bugs.webkit.org/show_bug.cgi?id=48676
     7
     8        * fast/canvas/webgl/webgl-specific-expected.txt:
     9        * fast/canvas/webgl/webgl-specific.html:
     10
    1112010-11-03  Dumitru Daniliuc  <dumi@chromium.org>
    212
  • trunk/LayoutTests/fast/canvas/webgl/webgl-specific-expected.txt

    r71282 r71291  
    1919PASS getError was expected value: INVALID_OPERATION : constant color and constant alpha cannot be used together as source and destination factors in the blend function
    2020PASS getError was expected value: INVALID_OPERATION : constant color and constant alpha cannot be used together as source and destination factors in the blend function
     21PASS getError was expected value: INVALID_OPERATION : depthRange should generate INVALID_OPERATION if zNear is greater than zFar
    2122PASS getError was expected value: NO_ERROR : stencilMask should generate no error
    2223PASS getError was expected value: INVALID_OPERATION : a different mask value for front and back facing is illegal
  • trunk/LayoutTests/fast/canvas/webgl/webgl-specific.html

    r71282 r71291  
    6969    "constant color and constant alpha cannot be used together as source and destination factors in the blend function");
    7070
    71 /*
    7271gl.depthRange(20, 10);
    7372glErrorShouldBe(gl, gl.INVALID_OPERATION,
    7473    "depthRange should generate INVALID_OPERATION if zNear is greater than zFar");
    75 */
    7674
    7775gl.stencilMask(255);
  • trunk/WebCore/ChangeLog

    r71289 r71291  
     12010-11-03  Zhenyao Mo  <zmo@google.com>
     2
     3        Reviewed by Kenneth Russell.
     4
     5        depthRange should generate INVALID_OPERATION if zNear is greater than zFar
     6        https://bugs.webkit.org/show_bug.cgi?id=48676
     7
     8        * html/canvas/WebGLRenderingContext.cpp:
     9        (WebCore::WebGLRenderingContext::depthRange):
     10
    1112010-11-03  Adrienne Walker  <enne@google.com>
    212
  • trunk/WebCore/html/canvas/WebGLRenderingContext.cpp

    r71289 r71291  
    791791    if (isContextLost())
    792792        return;
     793    if (zNear > zFar) {
     794        m_context->synthesizeGLError(GraphicsContext3D::INVALID_OPERATION);
     795        return;
     796    }
    793797    m_context->depthRange(zNear, zFar);
    794798    cleanupAfterGraphicsCall(false);
Note: See TracChangeset for help on using the changeset viewer.