[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] shader linking breaks WebGL context - Chrome 11 73189
- To: Mark Callow <callow_mark@hicorp.co.jp>
- Subject: Re: [Public WebGL] shader linking breaks WebGL context - Chrome 11 73189
- From: Adrienne Walker <enne@google.com>
- Date: Thu, 24 Feb 2011 17:39:13 -0800
- Cc: public webgl <public_webgl@khronos.org>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1298597987; bh=4xl9yQFywgUEsAVExuHFmOI3fK4=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type:Content-Transfer-Encoding; b=OXN6/Fsl3xLWXYv1XIjuCmWqgWnVRAtfVLM054F9WWWhOj/+BtYGstw88u5G4LlrX VA7Hs+cjiaMfIpwReRXCg==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=+v07CuJlxdALK9nKgtLMp8Apqtf0IEcVmnmDpLgSoi8=; b=s3zvWqqEtyScx0nNb+1nTXwgqTRHBV2RpOYFkA/P1rbL66y6HPnr7k4Q5v0a8ryhaY 6QZM9r40pIapENGZt/GA==
- Domainkey-signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=PQSUtfKGO+XJ9nlEIaN7d9Meznd7f1qiTmQ6P33zRZt/f5aAMVMdBZvw/6joyfAMgJ fzVOBMiRkob822NzygDg==
- In-reply-to: <4D67033F.8090504@hicorp.co.jp>
- List-id: Public WebGL Mailing List <public_webgl.khronos.org>
- References: <4D67033F.8090504@hicorp.co.jp>
- Sender: owner-public_webgl@khronos.org
If the GPU process crashed due to a bug of some sort, it's possible
that you lost your context. That would certainly explain all the null
values. What does isContextLost return?
-enne
El día 24 de febrero de 2011 17:17, Mark Callow
<callow_mark@hicorp.co.jp> escribió:
> 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
>
>
>
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------