onContextRestore method
void
onContextRestore()
Implementation
void onContextRestore(/* event */) {
print('THREE.WebGLRenderer: Context Restored.');
_isContextLost = false;
var infoAutoReset = info.autoReset;
var shadowMapEnabled = shadowMap.enabled;
var shadowMapAutoUpdate = shadowMap.autoUpdate;
var shadowMapNeedsUpdate = shadowMap.needsUpdate;
var shadowMapType = shadowMap.type;
initGLContext();
info.autoReset = infoAutoReset;
shadowMap.enabled = shadowMapEnabled;
shadowMap.autoUpdate = shadowMapAutoUpdate;
shadowMap.needsUpdate = shadowMapNeedsUpdate;
shadowMap.type = shadowMapType;
}