Skip to content

Commit

Permalink
Fix gl texture size for luminance plane
Browse files Browse the repository at this point in the history
  • Loading branch information
phoboslab committed Nov 4, 2014
1 parent 14806a1 commit c768b1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsmpg.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ jsmpeg.prototype.renderFrameGL = function() {
gl.activeTexture(gl.TEXTURE0);
gl.bindTexture(gl.TEXTURE_2D, this.YTexture);

gl.texImage2D(gl.TEXTURE_2D, 0, gl.LUMINANCE, this.width, this.height, 0, gl.LUMINANCE, gl.UNSIGNED_BYTE, uint8Y);
gl.texImage2D(gl.TEXTURE_2D, 0, gl.LUMINANCE, this.codedWidth, this.codedHeight, 0, gl.LUMINANCE, gl.UNSIGNED_BYTE, uint8Y);

gl.activeTexture(gl.TEXTURE1);
gl.bindTexture(gl.TEXTURE_2D, this.CBTexture);
Expand Down
Binary file added mind-blown2.mpg
Binary file not shown.

0 comments on commit c768b1f

Please sign in to comment.