Source
void activate(RenderContextWebGL renderContext) {
if (this.contextIdentifier != renderContext.contextIdentifier) {
_renderContext = renderContext;
_contextIdentifier = renderContext.contextIdentifier;
_renderingContext = renderContext.rawContext;
_renderbuffer = _renderingContext.createRenderbuffer();
_renderingContext.bindRenderbuffer(gl.RENDERBUFFER, _renderbuffer);
_renderingContext.renderbufferStorage(gl.RENDERBUFFER, gl.DEPTH_STENCIL, _width, _height);
} else {
_renderingContext.bindRenderbuffer(gl.RENDERBUFFER, _renderbuffer);
}
}