WebGL2: Add support for TEXTURE_BINDING_3D. (bug 1082952 r=jgilbert)

--HG--
extra : rebase_source : aac040bf24280dfcbc0fbbe4a20459f0b609a971
This commit is contained in:
David Anderson 2014-10-15 14:14:34 -07:00
parent c320aa8bad
commit 450748793f

View File

@ -186,6 +186,10 @@ WebGLContext::GetParameter(JSContext* cx, GLenum pname, ErrorResult& rv)
gl->fGetIntegerv(pname, &val);
return JS::NumberValue(uint32_t(val));
}
case LOCAL_GL_TEXTURE_BINDING_3D: {
return WebGLObjectAsJSValue(cx, mBound3DTextures[mActiveTexture].get(), rv);
}
}
}