b=612334; fix webgl depth-clear-value getter type; r=bjacob
authorVladimir Vukicevic <vladimir@pobox.com>
Tue, 16 Nov 2010 20:33:03 -0800
changeset 57633 84776327a1037d807614aa08e26a39924020211f
parent 57632 e5a34d3081b7da80a6769d0dd00505f5efa670de
child 57634 775225b133b3ba7665b84f91b3b2d05f90e4c184
push id17016
push uservladimir@mozilla.com
push dateWed, 17 Nov 2010 04:34:14 +0000
treeherdermozilla-central@69844c0f4fd1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs612334
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
b=612334; fix webgl depth-clear-value getter type; r=bjacob
content/canvas/src/WebGLContextGL.cpp
--- a/content/canvas/src/WebGLContextGL.cpp
+++ b/content/canvas/src/WebGLContextGL.cpp
@@ -1427,17 +1427,16 @@ WebGLContext::GetParameter(PRUint32 pnam
         //
         // Single-value params
         //
 
 // int
         case LOCAL_GL_CULL_FACE_MODE:
         case LOCAL_GL_FRONT_FACE:
         case LOCAL_GL_ACTIVE_TEXTURE:
-        case LOCAL_GL_DEPTH_CLEAR_VALUE:
         case LOCAL_GL_STENCIL_CLEAR_VALUE:
         case LOCAL_GL_STENCIL_FUNC:
         case LOCAL_GL_STENCIL_REF:
         case LOCAL_GL_STENCIL_FAIL:
         case LOCAL_GL_STENCIL_PASS_DEPTH_FAIL:
         case LOCAL_GL_STENCIL_PASS_DEPTH_PASS:
         case LOCAL_GL_STENCIL_BACK_FUNC:
         case LOCAL_GL_STENCIL_BACK_REF:
@@ -1515,16 +1514,17 @@ WebGLContext::GetParameter(PRUint32 pnam
             gl->fGetIntegerv(pname, &i);
             GLuint i_unsigned(i); // this is where -1 becomes 2^32-1
             double i_double(i_unsigned); // pass as FP value to allow large values such as 2^32-1.
             wrval->SetAsDouble(i_double);
         }
             break;
 
 // float
+        case LOCAL_GL_DEPTH_CLEAR_VALUE:
         case LOCAL_GL_LINE_WIDTH:
         case LOCAL_GL_POLYGON_OFFSET_FACTOR:
         case LOCAL_GL_POLYGON_OFFSET_UNITS:
         case LOCAL_GL_SAMPLE_COVERAGE_VALUE:
         {
             GLfloat f = 0.f;
             gl->fGetFloatv(pname, &f);
             wrval->SetAsFloat(f);