Skip to content

Commit

Permalink
refactor(shareResources): add comments and comment private variables
Browse files Browse the repository at this point in the history
  • Loading branch information
bruyeret authored and finetjul committed Jun 25, 2024
1 parent 9905080 commit 23388e6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
9 changes: 5 additions & 4 deletions Sources/Rendering/OpenGL/ImageMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ function vtkOpenGLImageMapper(publicAPI, model) {
!oldOglRenderWindow.isDeleted() &&
oldOglRenderWindow !== model._openGLRenderWindow
) {
// We unregister ourself when the render window changes
unregisterGraphicsResources(oldOglRenderWindow);
}
model.context = model._openGLRenderWindow.getContext();
Expand Down Expand Up @@ -1462,10 +1463,10 @@ const DEFAULT_VALUES = {
lastHaveSeenDepthRequest: false,
haveSeenDepthRequest: false,
lastTextureComponents: 0,
_scalars: null,
_colorTransferFunc: null,
_pwFunc: null,
_labelOutlineThicknessArray: null,
// _scalars: null,
// _colorTransferFunc: null,
// _pwFunc: null,
// _labelOutlineThicknessArray: null,
};

// ----------------------------------------------------------------------------
Expand Down
7 changes: 4 additions & 3 deletions Sources/Rendering/OpenGL/ImageResliceMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function vtkOpenGLImageResliceMapper(publicAPI, model) {
!oldOglRenderWindow.isDeleted() &&
oldOglRenderWindow !== model._openGLRenderWindow
) {
// We unregister ourself when the render window changes
unregisterGraphicsResources(oldOglRenderWindow);
}
model.context = model._openGLRenderWindow.getContext();
Expand Down Expand Up @@ -1326,9 +1327,9 @@ const DEFAULT_VALUES = {
colorTexture: null,
pwfTexture: null,
_externalOpenGLTexture: false,
_scalars: null,
_colorTransferFunc: null,
_pwFunc: null,
// _scalars: null,
// _colorTransferFunc: null,
// _pwFunc: null,
};

// ----------------------------------------------------------------------------
Expand Down
9 changes: 5 additions & 4 deletions Sources/Rendering/OpenGL/VolumeMapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function vtkOpenGLVolumeMapper(publicAPI, model) {
!oldOglRenderWindow.isDeleted() &&
oldOglRenderWindow !== model._openGLRenderWindow
) {
// We unregister ourself when the render window changes
unregisterGraphicsResources(oldOglRenderWindow);
}
model.context = model._openGLRenderWindow.getContext();
Expand Down Expand Up @@ -1894,10 +1895,10 @@ const DEFAULT_VALUES = {
projectionToView: null,
avgWindowArea: 0.0,
avgFrameTime: 0.0,
_scalars: null,
_scalarOpacityFunc: null,
_colorTransferFunc: null,
_labelOutlineThicknessArray: null,
// _scalars: null,
// _scalarOpacityFunc: null,
// _colorTransferFunc: null,
// _labelOutlineThicknessArray: null,
};

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit 23388e6

Please sign in to comment.