Browse Source

Merge branch 'master' of http://192.168.0.115:3000/bill/potree-sdk

bill-lai 3 years ago
parent
commit
9f0c22fdfd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/PotreeRenderer.js

+ 4 - 0
src/PotreeRenderer.js

@@ -226,6 +226,10 @@ class Shader {
 			this.vs = gl.createShader(gl.VERTEX_SHADER);
 			this.fs = gl.createShader(gl.FRAGMENT_SHADER);
 			this.program = gl.createProgram();
+            
+            if(  !gl.isProgram(this.program  )){//创建失败
+                console.error('创建program失败')
+            }
 
 			for(let name of Object.keys(attributeLocations)){
 				let location = attributeLocations[name].location;