Skip to content

Commit

Permalink
move premultiply alpha out of load
Browse files Browse the repository at this point in the history
  • Loading branch information
flyover committed Dec 16, 2015
1 parent 86b09c2 commit 006a74a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions demo/render-webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,6 @@ renderWebGL.prototype.loadPose = function (spine_pose, atlas_data, images)
var image = images[image_key];
var gl_texture = render.gl_textures[image_key] = gl.createTexture();
gl.bindTexture(gl.TEXTURE_2D, gl_texture);
gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false);
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl_min_filter);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl_mag_filter);
Expand All @@ -464,7 +463,6 @@ renderWebGL.prototype.loadPose = function (spine_pose, atlas_data, images)
var image = images[image_key];
var gl_texture = render.gl_textures[image_key] = gl.createTexture();
gl.bindTexture(gl.TEXTURE_2D, gl_texture);
gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false);
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
Expand Down

0 comments on commit 006a74a

Please sign in to comment.