Skip to content

Commit

Permalink
Specify the type that gl is
Browse files Browse the repository at this point in the history
So that it doesn't incorrectly suggest a 2d context is possible
  • Loading branch information
dhritzkiv committed Jan 9, 2022
1 parent 74b985a commit 8372de4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/javascript/browser-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ function createContext (width, height, options) {
if (!canvas) {
return null
}

/**
* @type WebGLRenderingContext
*/
let gl
canvas.width = width
canvas.height = height
Expand Down

0 comments on commit 8372de4

Please sign in to comment.