Skip to content

Commit

Permalink
test: Disable shader validation
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Jul 3, 2014
1 parent 6d1b4ec commit c5aba93
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@ var SceneJS_webgl_Program = function (gl, vertexSources, fragmentSources) {
}
gl.linkProgram(handle);

this.valid = (gl.getProgramParameter(handle, gl.LINK_STATUS) != 0);
//this.valid = (gl.getProgramParameter(handle, gl.LINK_STATUS) != 0);

var debugCfg = SceneJS_configsModule.getConfigs("shading");
if (debugCfg.validate !== false) {
gl.validateProgram(handle);
this.valid = this.valid && (gl.getProgramParameter(handle, gl.VALIDATE_STATUS) != 0);
}
// if (debugCfg.validate !== false) {
// gl.validateProgram(handle);
// this.valid = this.valid && (gl.getProgramParameter(handle, gl.VALIDATE_STATUS) != 0);
// }

if (!this.valid) {
if (false && !this.valid) {

if (!gl.isContextLost()) { // Handled explicitely elsewhere, so wont rehandle here

Expand Down

0 comments on commit c5aba93

Please sign in to comment.