Skip to content

Commit 95cc52b

Browse files
committed
fix: Check if cached opacity texture is deleted
1 parent bb6f39d commit 95cc52b

File tree

1 file changed

+2
-1
lines changed
  • Sources/Rendering/OpenGL/VolumeMapper

1 file changed

+2
-1
lines changed

Sources/Rendering/OpenGL/VolumeMapper/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,8 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
15371537
useIndependentComps,
15381538
numIComps
15391539
);
1540-
const reBuildOp = !opTex?.oglObject || opTex.hash !== opacityFuncHash;
1540+
const reBuildOp =
1541+
!opTex?.oglObject?.getHandle() || opTex.hash !== opacityFuncHash;
15411542
if (reBuildOp) {
15421543
const newOpacityTexture = vtkOpenGLTexture.newInstance();
15431544
newOpacityTexture.setOpenGLRenderWindow(model._openGLRenderWindow);

0 commit comments

Comments
 (0)