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

Re: [Public WebGL] Shared resources between contexts



If the context is synonymous, then "linking" is achieved as if it was two contexts being "linked". Therefore #3 is possible.

On Thu, Jan 5, 2012 at 7:24 AM, Mark Callow <callow_mark@hicorp.co.jp> wrote:

#3 is not already possible. The HTML5 canvas spec. says

"If the getContext() method has already been invoked on this element for the same contextId, return the same object as was returned that time"
and if the WebGL spec. says anything to contradict that, I could not find it. Mind you Section 2 could use some work. It says
"the author must obtain a [context] for a given [canvas] as described below"
but fails to say what the author actually has to do. It only says what the user agent has to do. The requirement to return the same object is cleverly hidden by the words "when ... a new" in the introduction to the user agent's steps.