Skip to content

Instantly share code, notes, and snippets.

if(newHeight !== this.height || newWidth !== this.width)
{
gl.texImage2D(gl.TEXTURE_2D, 0, this.format, this.format, this.type, source);
}
else
{
gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, this.format, this.type, source);
}
@barbarosso
barbarosso / cloudSettings
Created December 15, 2017 09:27
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-15T09:27:01.677Z","extensionVersion":"v2.8.7"}