Explorar el Código

Set gl viewport size to actual video size; see #1

Dominic Szablewski hace 11 años
padre
commit
90a8939252
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      jsmpg.js

+ 1 - 0
jsmpg.js Ver fichero

@@ -564,6 +564,7 @@ jsmpeg.prototype.initBuffers = function() {
564 564
 	
565 565
 	if( this.gl ) {
566 566
 		this.gl.useProgram(this.program);
567
+    	this.gl.viewport(0, 0, this.width, this.height);
567 568
 
568 569
 		// WebGL doesn't like Uint8ClampedArrays, so we have to create a 
569 570
 		// Uint8Array view for each plane