Skip to content

Commit

Permalink
fix(SurfaceLIC): guard against undefined framebuf
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Sep 11, 2024
1 parent cc47b18 commit 8057859
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function vtkLineIntegralConvolution2D(publicAPI, model) {
const gl = model.context;

let fb = model.framebuffer;
const fbSize = fb.getSize();
const fbSize = fb?.getSize();
if (!fb || !fbSize || size[0] !== fbSize || size[1] !== fbSize) {
fb = vtkFrameBuffer.newInstance();
fb.setOpenGLRenderWindow(model._openGLRenderWindow);
Expand Down

0 comments on commit 8057859

Please sign in to comment.