From 87eaed7ca96895c37d5d43986d741be7bdd7ad66 Mon Sep 17 00:00:00 2001 From: Forrest Date: Wed, 13 Sep 2023 15:31:19 -0400 Subject: [PATCH] fix(ImageMapper): use norm16 ext This keeps the ImageMapper in-line with the VolumeMapper. --- Sources/Rendering/OpenGL/ImageMapper/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Rendering/OpenGL/ImageMapper/index.js b/Sources/Rendering/OpenGL/ImageMapper/index.js index 583eae22099..2ef0302dbc6 100644 --- a/Sources/Rendering/OpenGL/ImageMapper/index.js +++ b/Sources/Rendering/OpenGL/ImageMapper/index.js @@ -927,6 +927,10 @@ function vtkOpenGLImageMapper(publicAPI, model) { if (model.VBOBuildString !== toString) { // Build the VBOs const dims = image.getDimensions(); + // Use norm16 for scalar texture if the extension is available + model.openGLTexture.setOglNorm16Ext( + model.context.getExtension('EXT_texture_norm16') + ); if (iType === InterpolationType.NEAREST) { if ( new Set([1, 3, 4]).has(numComp) &&