[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Spec change request.
- To: Benoit Jacob <bjacob@mozilla.com>
- Subject: Re: [Public WebGL] Spec change request.
- From: Kenneth Russell <kbr@google.com>
- Date: Sun, 5 Dec 2010 11:53:29 -0800
- Cc: Steve Baker <steve@sjbaker.org>, public webgl <public_webgl@khronos.org>, Cedric Vivier <cedricv@neonux.com>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1291578811; bh=vaXoixC2Ti2+u+Vr32CV0fPIGes=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=Tv2qNBBaeFQse1KMJYnjkLCfSb510YIjSH+eVXbwTtxDRctLpZlmRRZuMJJXeNKfO EXy2rwUmGqkGblWCrBI7A==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=wt09HXVbEUSi8F/aITycThxwduvMajR8qiTezFhwzlw=; b=SpObq3yahqRwDUhthTGoVCJAxmpbvJb4jf5CbHVit5gJ+Zkq3C6is5mZFAprCAYIPY BbDJgBoG4i+8kaKq6ljg==
- Domainkey-signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=auqETbLxWj0v0JKlSBFZK4LVmdfd4InONT3sY/Ry4ZtL4xrmwRS91gdf3wDNPUkV1R 2+AAZeHU4c4rQP+FkzEQ==
- In-reply-to: <1485034605.486186.1291568158917.JavaMail.root@cm-mail03.mozilla.org>
- List-id: Public WebGL Mailing List <public_webgl.khronos.org>
- References: <4CFBC45A.6020204@sjbaker.org> <1485034605.486186.1291568158917.JavaMail.root@cm-mail03.mozilla.org>
- Sender: owner-public_webgl@khronos.org
Yes, this behavior was changed in the spec in the not-too-distant past
precisely for this reason. OpenGL and OpenGL ES ignore calls to
glUniform* with -1 as the uniform location, and we realized that WebGL
needs to do the same to keep calling code simple.
-Ken
On Sun, Dec 5, 2010 at 8:55 AM, Benoit Jacob <bjacob@mozilla.com> wrote:
> Oh right, I had forgotten about that. I confirm that's the implemented behavior, see the OBTAIN_UNIFORM_LOCATION macro in WebGLContextGL.cpp.
>
> Benoit
>
> ----- Original Message -----
>> Argh! OK - forget it.
>>
>> I just re-read the spec document - and it seems that what I'm asking
>> for
>> is already there!
>>
>> 5.13.10 says: "If the passed |location| is null, the data passed in
>> will
>> be silently ignored and no uniform variables will be changed."
>>
>> I guess this either changed at some point in the past - or one or
>> other
>> implementation may have had a bug that got fixed. Months back when I
>> started working on this stuff, I needed this test to avoid getting
>> errors - and now that I've taken it out, everything does seem to work
>> just fine...at least in Minefield under Linux - I'll test some more
>> platforms later to be sure.
>>
>> Sorry!
>>
>> -- Steve
>>
>> -----------------------------------------------------------
>> 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:
> -----------------------------------------------------------
> 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:
>
>
-----------------------------------------------------------
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: