webgl: Add stub isContextLost API.

This commit is contained in:
Josh Matthews 2020-07-03 12:22:48 -04:00
parent 745eb88e32
commit 795560ad52
7 changed files with 17 additions and 24 deletions

View file

@ -2319,6 +2319,11 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
})
}
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.13
fn IsContextLost(&self) -> bool {
false
}
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.14
fn GetSupportedExtensions(&self) -> Option<Vec<DOMString>> {
self.extension_manager