Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
window.addEventListener("load", () => {
const canvas = document.createElement('canvas');
const context = canvas.getContext("webgl");
const extension = context.getExtension("WEBGL_lose_context");
extension.loseContext();
extension.restoreContext();
canvas.height = 0;
});
</script>
</head>
</html>