mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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.
This commit is contained in:
parent
7931df716d
commit
288ef50fb7
11 changed files with 156 additions and 264 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue