Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
80b3fd63
Commit
80b3fd63
authored
Jul 15, 2013
by
John Biddiscombe
Browse files
Fix 0014170 segfault in setting of GPU resampler input
Change-Id: I191d84244d3415054f7e09c2be771beab72a8c9c
parent
5c0c3364
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/Volume/vtkSmartVolumeMapper.cxx
View file @
80b3fd63
...
...
@@ -26,7 +26,6 @@
#include
"vtkPiecewiseFunction.h"
#include
"vtkRenderer.h"
#include
"vtkRenderWindow.h"
#include
"vtkTrivialProducer.h"
#include
"vtkVolume.h"
#include
"vtkVolumeProperty.h"
#include
"vtkVolumeTextureMapper3D.h"
...
...
@@ -528,10 +527,7 @@ void vtkSmartVolumeMapper::ConnectMapperInput(vtkVolumeMapper *m)
// make sure we not create a shallow copy each time to avoid
// performance penalty.
input2
=
vtkImageData
::
New
();
vtkTrivialProducer
*
tp
=
vtkTrivialProducer
::
New
();
tp
->
SetOutput
(
input2
);
m
->
SetInputConnection
(
tp
->
GetOutputPort
());
tp
->
Delete
();
m
->
SetInputDataObject
(
input2
);
input2
->
Delete
();
needShallowCopy
=
true
;
}
...
...
@@ -557,7 +553,7 @@ void vtkSmartVolumeMapper::ConnectFilterInput(vtkImageResample *f)
// make sure we not create a shallow copy each time to avoid
// performance penalty.
input2
=
vtkImageData
::
New
();
f
->
SetInput
Connection
(
f
->
GetInputConnection
(
0
,
0
)
);
f
->
SetInput
DataObject
(
input2
);
input2
->
Delete
();
needShallowCopy
=
true
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment