[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Last-minute comments/questions for 1.0.1 spec/tests

On Mon, Nov 28, 2011 at 4:02 PM, Gregg Tavares (wrk) <gman@google.com> wrote:
On Sat, Nov 26, 2011 at 2:08 PM, Benoit Jacob <bjacob@mozilla.com> wrote:
3. Firefox happens to ensure that identical calls to getUniformLocation return the _same_ WebGLUniformLocation object, but I don't remember if/where this is mandated by the spec? And if there is a test for that?
I don't think there is a test for that nor do I think it's in the spec. Should it be?

This should definitely be explicit, one way or the other; not specifying it will lead to interop problems.

It almost seems like WebGLUniformLocation should inherit from WebGLObject, since it's used in the same way: a "dummy" object representing an underlying resource.  It's not quite the same, though, since the user isn't responsible for their resource management (you don't delete them directly, as they're tied to their WebGLProgram).

(As an aside, I wish there were no "deleteTexture", etc. functions, and only a single deleteObject(WebGLObject) function...)

Glenn Maynard