WebGL2: Add support for TEXTURE_BINDING_3D. (bug 1082952 r=jgilbert)
authorDavid Anderson <danderson@mozilla.com>
Wed, 15 Oct 2014 14:14:34 -0700
changeset 210621 e9413152ce85ea3b40d661c3820456c0b3bfa1b4
parent 210620 d6260c51371fa35fc9b2549cafe013a41d01bb86
child 210622 14b69d2ca6949d93d9f8673c245af431dd94b685
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjgilbert
bugs1082952
milestone36.0a1
WebGL2: Add support for TEXTURE_BINDING_3D. (bug 1082952 r=jgilbert)
dom/canvas/WebGLContextState.cpp
--- a/dom/canvas/WebGLContextState.cpp
+++ b/dom/canvas/WebGLContextState.cpp
@@ -181,16 +181,20 @@ WebGLContext::GetParameter(JSContext* cx
         switch (pname) {
             case LOCAL_GL_MAX_SAMPLES:
             case LOCAL_GL_MAX_UNIFORM_BLOCK_SIZE:
             case LOCAL_GL_MAX_VERTEX_UNIFORM_COMPONENTS: {
                 GLint val;
                 gl->fGetIntegerv(pname, &val);
                 return JS::NumberValue(uint32_t(val));
             }
+
+            case LOCAL_GL_TEXTURE_BINDING_3D: {
+                return WebGLObjectAsJSValue(cx, mBound3DTextures[mActiveTexture].get(), rv);
+            }
         }
     }
 
     switch (pname) {
         //
         // String params
         //
         case LOCAL_GL_VENDOR: