diff --git a/Sources/Rendering/OpenGL/VolumeMapper/index.js b/Sources/Rendering/OpenGL/VolumeMapper/index.js index 50e92eda5f2..0f96f49c6c6 100644 --- a/Sources/Rendering/OpenGL/VolumeMapper/index.js +++ b/Sources/Rendering/OpenGL/VolumeMapper/index.js @@ -1537,7 +1537,8 @@ function vtkOpenGLVolumeMapper(publicAPI, model) { useIndependentComps, numIComps ); - const reBuildOp = !opTex?.oglObject || opTex.hash !== opacityFuncHash; + const reBuildOp = + !opTex?.oglObject?.getHandle() || opTex.hash !== opacityFuncHash; if (reBuildOp) { const newOpacityTexture = vtkOpenGLTexture.newInstance(); newOpacityTexture.setOpenGLRenderWindow(model._openGLRenderWindow);