[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Bug in context-lost.html conformance test: getContextAttributes should not return null
Yes, we can actually. Ideally we can call
var gl = canvas.getContext("webgl");
and the context is already lost. isContextLost() returns true and the contextlostevent will be delivered once the current event exits
That does bring up a good point as to why getContextAttrbutes should maybe return null during contextlost. I know that sucks though since you have to be defensive about accessing it but I don't know what it could report since there is no context to give attributes about.