Skip to content

Commit

Permalink
add pixelStorei calls before texSubImage2D call
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Fedosov committed Mar 23, 2018
1 parent 19db5dd commit baf3190
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Texture.js
Expand Up @@ -82,6 +82,9 @@ class Texture {
*/
subImage(gl, src, x, y) {
gl.bindTexture(gl.TEXTURE_2D, this._texture);
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, this.options.flipY);
gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, this.options.premultiplyAlpha);

gl.texSubImage2D(
gl.TEXTURE_2D,
0,
Expand Down

0 comments on commit baf3190

Please sign in to comment.