| 3865 | } |
| 3866 | |
| 3867 | void vtkOpenGLGPUVolumeRayCastMapper::vtkInternal::FinishRendering(const int numComp) |
| 3868 | { |
| 3869 | for (auto& item : this->Parent->AssembledInputs) |
| 3870 | { |
| 3871 | auto& input = item.second; |
| 3872 | input.Texture->GetCurrentBlock()->TextureObject->Deactivate(); |
| 3873 | input.DeactivateTransferFunction(this->Parent->BlendMode); |
| 3874 | } |
| 3875 | |
| 3876 | if (this->DepthTextureObject && !this->SharedDepthTextureObject) |
| 3877 | { |
| 3878 | this->DepthTextureObject->Deactivate(); |
| 3879 | } |
| 3880 | |
| 3881 | if (this->CurrentMask) |
| 3882 | { |
| 3883 | this->CurrentMask->GetCurrentBlock()->TextureObject->Deactivate(); |
| 3884 | } |
| 3885 | |
| 3886 | if (numComp == 1 && this->Parent->BlendMode != vtkGPUVolumeRayCastMapper::ADDITIVE_BLEND) |
| 3887 | { |
| 3888 | if (this->Parent->MaskInput != nullptr && this->Parent->MaskType == LabelMapMaskType) |
| 3889 | { |
| 3890 | this->LabelMapTransfer2D->Deactivate(); |
| 3891 | this->LabelMapGradientOpacity->Deactivate(); |
| 3892 | } |
| 3893 | } |
| 3894 | |
| 3895 | vtkOpenGLStaticCheckErrorMacro("Failed after FinishRendering!"); |
| 3896 | } |
| 3897 | |
| 3898 | //------------------------------------------------------------------------------ |
| 3899 | void vtkOpenGLGPUVolumeRayCastMapper::DoGPURender(vtkRenderer* ren, vtkOpenGLCamera* cam, |
no test coverage detected