Skip to content
Snippets Groups Projects
Commit 633fbe46 authored by Alexander Rose's avatar Alexander Rose
Browse files

unbind webgl2 textures too

parent 073999c6
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,10 @@ function unbindResources (gl: GLRenderingContext) {
gl.activeTexture(gl.TEXTURE0 + i)
gl.bindTexture(gl.TEXTURE_2D, null)
gl.bindTexture(gl.TEXTURE_CUBE_MAP, null)
if (isWebGL2(gl)) {
gl.bindTexture(gl.TEXTURE_2D_ARRAY, null)
gl.bindTexture(gl.TEXTURE_3D, null)
}
}
// assign the smallest possible buffer to all attributes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment