Talk:Loading shaders from HTML script tags

From The WebGL Cookbook
Jump to: navigation, search

Maybe You should check the length of the log width att the end and write it to the console if it's not 0. So that it wil catch all errors and at least pressent them.

if(getShaderi(shader,INFO_LOG_LENGTH)!=0){
window.console && window.console.warn("shader info log:",getShaderInfoLog((shader));
}

--Neppord 12:32, 13 November 2009 (UTC)

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox