Fix idl_type swap

This commit is contained in:
Chinedu Francis Nwafili
2019-01-22 21:35:22 -05:00
parent 48b64f4cfe
commit 048a22bc77
3 changed files with 28 additions and 11 deletions

View File

@ -152,6 +152,9 @@ export function new_title() {
}
export function new_webgl_rendering_context() {
const foo = document.createElement('canvas');
console.log('Does get context work? ' + foo.getContext('webgl'));
const canvas = document.createElement('canvas');
return canvas.getContext('webgl');
}