Quellcode durchsuchen

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

Dominic Szablewski vor 11 Jahren
Ursprung
Commit
90a8939252
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      jsmpg.js

+ 1 - 0
jsmpg.js Datei anzeigen

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