File tree 3 files changed +14
-11
lines changed
3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ function vtkOpenGLImageMapper(publicAPI, model) {
89
89
! oldOglRenderWindow . isDeleted ( ) &&
90
90
oldOglRenderWindow !== model . _openGLRenderWindow
91
91
) {
92
+ // We unregister ourself when the render window changes
92
93
unregisterGraphicsResources ( oldOglRenderWindow ) ;
93
94
}
94
95
model . context = model . _openGLRenderWindow . getContext ( ) ;
@@ -1462,10 +1463,10 @@ const DEFAULT_VALUES = {
1462
1463
lastHaveSeenDepthRequest : false ,
1463
1464
haveSeenDepthRequest : false ,
1464
1465
lastTextureComponents : 0 ,
1465
- _scalars : null ,
1466
- _colorTransferFunc : null ,
1467
- _pwFunc : null ,
1468
- _labelOutlineThicknessArray : null ,
1466
+ // _scalars: null,
1467
+ // _colorTransferFunc: null,
1468
+ // _pwFunc: null,
1469
+ // _labelOutlineThicknessArray: null,
1469
1470
} ;
1470
1471
1471
1472
// ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ function vtkOpenGLImageResliceMapper(publicAPI, model) {
85
85
! oldOglRenderWindow . isDeleted ( ) &&
86
86
oldOglRenderWindow !== model . _openGLRenderWindow
87
87
) {
88
+ // We unregister ourself when the render window changes
88
89
unregisterGraphicsResources ( oldOglRenderWindow ) ;
89
90
}
90
91
model . context = model . _openGLRenderWindow . getContext ( ) ;
@@ -1326,9 +1327,9 @@ const DEFAULT_VALUES = {
1326
1327
colorTexture : null ,
1327
1328
pwfTexture : null ,
1328
1329
_externalOpenGLTexture : false ,
1329
- _scalars : null ,
1330
- _colorTransferFunc : null ,
1331
- _pwFunc : null ,
1330
+ // _scalars: null,
1331
+ // _colorTransferFunc: null,
1332
+ // _pwFunc: null,
1332
1333
} ;
1333
1334
1334
1335
// ----------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
164
164
! oldOglRenderWindow . isDeleted ( ) &&
165
165
oldOglRenderWindow !== model . _openGLRenderWindow
166
166
) {
167
+ // We unregister ourself when the render window changes
167
168
unregisterGraphicsResources ( oldOglRenderWindow ) ;
168
169
}
169
170
model . context = model . _openGLRenderWindow . getContext ( ) ;
@@ -1894,10 +1895,10 @@ const DEFAULT_VALUES = {
1894
1895
projectionToView : null ,
1895
1896
avgWindowArea : 0.0 ,
1896
1897
avgFrameTime : 0.0 ,
1897
- _scalars : null ,
1898
- _scalarOpacityFunc : null ,
1899
- _colorTransferFunc : null ,
1900
- _labelOutlineThicknessArray : null ,
1898
+ // _scalars: null,
1899
+ // _scalarOpacityFunc: null,
1900
+ // _colorTransferFunc: null,
1901
+ // _labelOutlineThicknessArray: null,
1901
1902
} ;
1902
1903
1903
1904
// ----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments