onContextRestore method
void
onContextRestore()
Implementation
void onContextRestore() {
console.info('WebGLRenderer: Context Restored.');
_isContextLost = false;
final infoAutoReset = info.autoReset;
final shadowMapEnabled = shadowMap.enabled;
final shadowMapAutoUpdate = shadowMap.autoUpdate;
final shadowMapNeedsUpdate = shadowMap.needsUpdate;
final shadowMapType = shadowMap.type;
initGLContext();
info.autoReset = infoAutoReset;
shadowMap.enabled = shadowMapEnabled;
shadowMap.autoUpdate = shadowMapAutoUpdate;
shadowMap.needsUpdate = shadowMapNeedsUpdate;
shadowMap.type = shadowMapType;
}