From c631cc28b8eedb1185b34f222be4ad3ab45cd8c3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 15 Oct 2014 14:14:34 -0700 Subject: [PATCH] WebGL2: Add support for TEXTURE_BINDING_3D. (bug 1082952 r=jgilbert) --HG-- extra : rebase_source : aac040bf24280dfcbc0fbbe4a20459f0b609a971 --- dom/canvas/WebGLContextState.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/canvas/WebGLContextState.cpp b/dom/canvas/WebGLContextState.cpp index 768742d4161b..474734bbfac7 100644 --- a/dom/canvas/WebGLContextState.cpp +++ b/dom/canvas/WebGLContextState.cpp @@ -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); + } } }