Skip to content

Commit

Permalink
Set gl viewport size to actual video size; see phoboslab#1
Browse files Browse the repository at this point in the history
  • Loading branch information
phoboslab committed Nov 10, 2014
1 parent 6d304a1 commit 90a8939
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jsmpg.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ jsmpeg.prototype.initBuffers = function() {

if( this.gl ) {
this.gl.useProgram(this.program);
this.gl.viewport(0, 0, this.width, this.height);

// WebGL doesn't like Uint8ClampedArrays, so we have to create a
// Uint8Array view for each plane
Expand Down

0 comments on commit 90a8939

Please sign in to comment.