webgl: Implement getSupportedExtensions

This commit is contained in:
Emilio Cobos Álvarez 2015-11-08 16:12:41 +01:00
parent 63aa6862b4
commit b740b90b8d
2 changed files with 6 additions and 1 deletions

View file

@ -244,6 +244,11 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
})
}
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.14
fn GetSupportedExtensions(&self) -> Option<Vec<DOMString>> {
Some(vec![])
}
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.14
fn GetExtension(&self, _cx: *mut JSContext, _name: DOMString) -> *mut JSObject {
// TODO(ecoal95) we actually do not support extensions.