mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
webgl: Implement getSupportedExtensions
This commit is contained in:
parent
63aa6862b4
commit
b740b90b8d
2 changed files with 6 additions and 1 deletions
|
@ -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
|
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.14
|
||||||
fn GetExtension(&self, _cx: *mut JSContext, _name: DOMString) -> *mut JSObject {
|
fn GetExtension(&self, _cx: *mut JSContext, _name: DOMString) -> *mut JSObject {
|
||||||
// TODO(ecoal95) we actually do not support extensions.
|
// TODO(ecoal95) we actually do not support extensions.
|
||||||
|
|
|
@ -471,7 +471,7 @@ interface WebGLRenderingContextBase
|
||||||
[WebGLHandlesContextLoss] WebGLContextAttributes? getContextAttributes();
|
[WebGLHandlesContextLoss] WebGLContextAttributes? getContextAttributes();
|
||||||
//[WebGLHandlesContextLoss] boolean isContextLost();
|
//[WebGLHandlesContextLoss] boolean isContextLost();
|
||||||
|
|
||||||
//sequence<DOMString>? getSupportedExtensions();
|
sequence<DOMString>? getSupportedExtensions();
|
||||||
object? getExtension(DOMString name);
|
object? getExtension(DOMString name);
|
||||||
|
|
||||||
void activeTexture(GLenum texture);
|
void activeTexture(GLenum texture);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue