diff options
author | Martina Kollarova <martina.kollarova@intel.com> | 2018-02-28 16:03:48 +0200 |
---|---|---|
committer | Martina Kollarova <martina.kollarova@intel.com> | 2018-03-06 15:28:10 +0200 |
commit | 288ef50fb79aaab771b93e4e06d077656500ebb9 (patch) | |
tree | 60ad639fc0778f7307e28e2d6af4203750d92074 /components/script/dom/webgl2renderingcontext.rs | |
parent | 7931df716d3f2145758b5bfc278fa345d3b3b327 (diff) | |
download | servo-288ef50fb79aaab771b93e4e06d077656500ebb9.tar.gz servo-288ef50fb79aaab771b93e4e06d077656500ebb9.zip |
Add WebGL function glGetTexParameter
Set the expected result of the test `tex-input-validation.html` to CRASH, since
that is caused by unrelated problems. The test was previously not executing
completely, because it stopped when it didn't find the implementation of
getTexParameter.
Diffstat (limited to 'components/script/dom/webgl2renderingcontext.rs')
-rw-r--r-- | components/script/dom/webgl2renderingcontext.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/webgl2renderingcontext.rs b/components/script/dom/webgl2renderingcontext.rs index 9bf016f9631..2a25c450b08 100644 --- a/components/script/dom/webgl2renderingcontext.rs +++ b/components/script/dom/webgl2renderingcontext.rs @@ -115,6 +115,12 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext { self.base.GetParameter(cx, parameter) } + #[allow(unsafe_code)] + /// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.8 + unsafe fn GetTexParameter(&self, cx: *mut JSContext, target: u32, pname: u32) -> JSVal { + self.base.GetTexParameter(cx, target, pname) + } + /// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.3 fn GetError(&self) -> u32 { self.base.GetError() |