File tree 2 files changed +2
-9
lines changed
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -214,10 +214,7 @@ function vtkOpenGLImageResliceMapper(publicAPI, model) {
214
214
let toString = `${ image . getMTime ( ) } A${ scalars . getMTime ( ) } ` ;
215
215
216
216
const tex = model . _openGLRenderWindow . getGraphicsResourceForObject ( scalars ) ;
217
- const reBuildTex =
218
- ! tex ?. vtkObj ||
219
- tex ?. hash !== toString ||
220
- model . openGLTextureString !== toString ;
217
+ const reBuildTex = ! tex ?. vtkObj || tex ?. hash !== toString ;
221
218
if ( reBuildTex ) {
222
219
if ( ! model . openGLTexture ) {
223
220
model . openGLTexture = vtkOpenGLTexture . newInstance ( ) ;
@@ -237,17 +234,15 @@ function vtkOpenGLImageResliceMapper(publicAPI, model) {
237
234
dims [ 2 ] ,
238
235
scalars
239
236
) ;
240
- model . openGLTextureString = toString ;
241
237
if ( scalars ) {
242
238
model . _openGLRenderWindow . setGraphicsResourceForObject (
243
239
scalars ,
244
240
model . openGLTexture ,
245
- model . openGLTextureString
241
+ toString
246
242
) ;
247
243
}
248
244
} else {
249
245
model . openGLTexture = tex . vtkObj ;
250
- model . openGLTextureString = tex . hash ;
251
246
}
252
247
253
248
const ppty = actor . getProperty ( ) ;
@@ -1296,7 +1291,6 @@ const DEFAULT_VALUES = {
1296
1291
lastSlabTrapezoidIntegration : 0 ,
1297
1292
lastSlabType : - 1 ,
1298
1293
openGLTexture : null ,
1299
- openGLTextureString : null ,
1300
1294
colorTextureString : null ,
1301
1295
pwfTextureString : null ,
1302
1296
resliceGeom : null ,
Original file line number Diff line number Diff line change @@ -1831,7 +1831,6 @@ const DEFAULT_VALUES = {
1831
1831
context : null ,
1832
1832
VBOBuildTime : null ,
1833
1833
scalarTexture : null ,
1834
- scalarTextureString : null ,
1835
1834
opacityTexture : null ,
1836
1835
opacityTextureString : null ,
1837
1836
colorTexture : null ,
You can’t perform that action at this time.
0 commit comments