Skip to content

Commit 0a4d8ab

Browse files
slak44floryst
authored andcommitted
fix: use correct name for enableUseHalfFloat
1 parent 1166815 commit 0a4d8ab

File tree

1 file changed

+2
-1
lines changed
  • Sources/Rendering/OpenGL/Texture

1 file changed

+2
-1
lines changed

Sources/Rendering/OpenGL/Texture/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ function vtkOpenGLTexture(publicAPI, model) {
408408
return result;
409409
};
410410

411-
publicAPI.useHalfFloat = () => model.canUseHalfFloat;
411+
publicAPI.useHalfFloat = () =>
412+
model.enableUseHalfFloat && model.canUseHalfFloat;
412413

413414
//----------------------------------------------------------------------------
414415
publicAPI.setInternalFormat = (iFormat) => {

0 commit comments

Comments
 (0)