pex-gl / pex-context

Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.
http://pex-gl.github.io/pex-context/
MIT License
160 stars 12 forks source link

Resize canvas on dispose #57

Closed vorg closed 5 years ago

vorg commented 5 years ago

Seems to be common practice as I saw it pop up in multiple places. Most rencently in this SO answer.

gl.canvas.width = 1;
gl.canvas.height = 1;