From 80578595a5ec9d278702bb0aea0c0dea62f75824 Mon Sep 17 00:00:00 2001 From: Forrest Date: Tue, 10 Sep 2024 12:50:51 -0400 Subject: [PATCH] fix(SurfaceLIC): guard against undefined framebuf --- .../OpenGL/SurfaceLIC/LineIntegralConvolution2D/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/index.js b/Sources/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/index.js index 76b1fbe0a4c..0e925117326 100644 --- a/Sources/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/index.js +++ b/Sources/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/index.js @@ -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);