Hi,
When I call getProgramParameter(program, LINK_STATUS) on the
following pair of shaders, getProgramParameter returns null. Not
false, null. If I comment out the last line of the fragment
shader body or comment out the "* col" in that line the link
works.
var myfs = "precision mediump float;"
+ "varying vec4 erp_var_texcoord0;"
+ "uniform sampler2D erp_texture[1];"
+ "varying vec4 erp_var_color;"
+ "void main() {"
+ "vec4 col;"
+ "col = texture2D(erp_texture[0],
erp_var_texcoord0.st);"
+ "gl_FragColor = erp_var_color * col;"
+ "}";
var myvs = "attribute vec4 erp_color;"
+ "varying vec4 erp_var_color;"
+ "attribute vec4 erp_texcoord0;"
+ "varying vec4 erp_var_texcoord0;"
+ "uniform mediump vec4 erp_textureFactor[2];"
+ "uniform mat4 erp_matrix[7];"
+ "attribute vec4 erp_position;"
+ "void main() {"
+ "gl_Position = erp_matrix[0] * erp_position;"
+ "erp_var_texcoord0 = erp_matrix[5] * erp_texcoord0;"
+ "erp_var_color = erp_color;"
+ "}";
I am running in GWT. I trapped the exception, in case GWT was
turning false into null, and called getInfoProgramLog but it
also returns null. I cannot see what it wrong with the shader.
I am running Chrome 11.0.656.0 (73189). I have been unable to
try anything more recent as Chrome continuous builds for the
last week or more and Chrome Canary crash instantly when I try
to run them. I am running on Windows XP SP2. I tried removing my
User Data as suggested in various bulletin boards but it did not
help.
Any suggestions for either problem will be gratefully received.
Regards
-Mark
begin:vcard fn:Mark Callow n:Callow;Mark org:HI Corporation;Middleware Development adr:Higashiyama 1-4-4, Meguro-ku;;Meguro Higashiyama Bldg 5F;Tokyo;;153-0043;Japan email;internet:callow_mark@hicorp.co.jp title:Chief Architect tel;work:+81 3 3710 9367 tel;fax:+81 3 5773 8660 x-mozilla-html:TRUE url:http://www.hicorp.co.jp, http://www.mascotcapsule.com version:2.1 end:vcard