@cornerstonejs/core 2.0.0-beta.17 → 2.0.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -387,8 +387,11 @@ class StackViewport extends Viewport {
|
|
|
387
387
|
_configureRenderingPipeline(value) {
|
|
388
388
|
this.useNativeDataType = this._shouldUseNativeDataType();
|
|
389
389
|
this.useCPURendering = value ?? getShouldUseCPURendering();
|
|
390
|
-
for (const
|
|
391
|
-
|
|
390
|
+
for (const key in this.renderingPipelineFunctions) {
|
|
391
|
+
if (Object.prototype.hasOwnProperty.call(this.renderingPipelineFunctions, key)) {
|
|
392
|
+
const functions = this.renderingPipelineFunctions[key];
|
|
393
|
+
this[key] = this.useCPURendering ? functions.cpu : functions.gpu;
|
|
394
|
+
}
|
|
392
395
|
}
|
|
393
396
|
this.useCPURendering
|
|
394
397
|
? this._resetCPUFallbackElement()
|