Skip to content

Commit 8057859

Browse files
committed
fix(SurfaceLIC): guard against undefined framebuf
1 parent cc47b18 commit 8057859

File tree

1 file changed

+1
-1
lines changed
  • Sources/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D

1 file changed

+1
-1
lines changed

Sources/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function vtkLineIntegralConvolution2D(publicAPI, model) {
202202
const gl = model.context;
203203

204204
let fb = model.framebuffer;
205-
const fbSize = fb.getSize();
205+
const fbSize = fb?.getSize();
206206
if (!fb || !fbSize || size[0] !== fbSize || size[1] !== fbSize) {
207207
fb = vtkFrameBuffer.newInstance();
208208
fb.setOpenGLRenderWindow(model._openGLRenderWindow);

0 commit comments

Comments
 (0)