mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Implement gl.getParameter(gl.CURRENT_PROGRAM)
This commit is contained in:
parent
f532e79dc1
commit
cb6fa6e6b0
3 changed files with 6 additions and 55 deletions
|
@ -1269,6 +1269,9 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
match parameter {
|
||||
constants::ARRAY_BUFFER_BINDING =>
|
||||
return object_binding_to_js_or_null!(cx, &self.bound_buffer_array),
|
||||
constants::CURRENT_PROGRAM => {
|
||||
return object_binding_to_js_or_null!(cx, &self.current_program);
|
||||
}
|
||||
constants::ELEMENT_ARRAY_BUFFER_BINDING =>
|
||||
return object_binding_to_js_or_null!(cx, &self.bound_buffer_element_array),
|
||||
constants::FRAMEBUFFER_BINDING =>
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
[element-array-buffer-delete-recreate.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
||||
[WebGL test #0: getError expected: NO_ERROR. Was INVALID_ENUM : no errors from draw]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #1: at (0, 0) expected: 0,255,0,255 was 0,0,0,0]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #0: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
|
||||
expected: FAIL
|
||||
|
|
@ -1,51 +1,11 @@
|
|||
[drawingbuffer-hd-dpi-test.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
||||
[WebGL test #5: at (28, 12) expected: 0,255,0,255 was 0,0,0,0]
|
||||
[WebGL test #12: at 0, 0 expected 0,0,0,255(black) was 0,255,0,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #8: gl.getError() should be 0. Was 1280.]
|
||||
[WebGL test #29: at 0, 0 expected 0,0,0,255(black) was 0,255,0,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #12: at 0, 0 expected 0,0,0,255(black) was 0,0,0,0]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #13: at (12, 28) expected: 0,255,0,255 was 0,0,0,0]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #16: gl.getError() should be 0. Was 1280.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #22: at (124, 60) expected: 0,255,0,255 was 0,0,0,0]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #25: gl.getError() should be 0. Was 1280.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #29: at 0, 0 expected 0,0,0,255(black) was 0,0,0,0]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #30: at (60, 124) expected: 0,255,0,255 was 0,0,0,0]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #33: gl.getError() should be 0. Was 1280.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #39: at (252, 508) expected: 0,255,0,255 was 0,0,0,0]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #42: gl.getError() should be 0. Was 1280.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #46: at 0, 0 expected 0,0,0,255(black) was 0,0,0,0]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #47: at (508, 252) expected: 0,255,0,255 was 0,0,0,0]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #50: gl.getError() should be 0. Was 1280.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #5: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
|
||||
[WebGL test #46: at 0, 0 expected 0,0,0,255(black) was 0,255,0,255]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue