Skip to content

Commit

Permalink
fix: Check if cached opacity texture is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
bruyeret committed Oct 4, 2024
1 parent 5f29c73 commit 533797c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Rendering/OpenGL/VolumeMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 533797c

Please sign in to comment.