Skip to content

Commit

Permalink
display linker errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kusma committed Dec 1, 2011
1 parent 39e788e commit 87931a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@

if ( !gl.getProgramParameter( program, gl.LINK_STATUS ) ) {

var error = gl.getProgramInfoLog( program );

compileButton.title = error;
console.error( error );

console.error( 'VALIDATE_STATUS: ' + gl.getProgramParameter( program, gl.VALIDATE_STATUS ), 'ERROR: ' + gl.getError() );
compileButton.style.color = '#ff0000';
compileButton.textContent = 'compiled with errors';
Expand Down

0 comments on commit 87931a2

Please sign in to comment.