BUG: Fixed state saving/restoring on the 3D API.
BUG: Fixed state saving/restoring on the 3D API.

Change-Id: I33be94a819cd42871c4352c912e0a7cb88e3af58

mspark93/VTK,jmerkow/VTK,demarle/VTK,candy7393/VTK,mspark93/VTK,keithroe/vtkoptix,hendradarwin/VTK,keithroe/vtkoptix,sankhesh/VTK,keithroe/vtkoptix,aashish24/VTK-old,johnkit/vtk-dev,sumedhasingla/VTK,msmolens/VTK,gram526/VTK,collects/VTK,hendradarwin/VTK,gram526/VTK,ashray/VTK-EVM,aashish24/VTK-old,SimVascular/VTK,demarle/VTK,cjh1/VTK,biddisco/VTK,keithroe/vtkoptix,johnkit/vtk-dev,sankhesh/VTK,biddisco/VTK,berendkleinhaneveld/VTK,gram526/VTK,SimVascular/VTK,sankhesh/VTK,candy7393/VTK,keithroe/vtkoptix,candy7393/VTK,collects/VTK,hendradarwin/VTK,hendradarwin/VTK,jmerkow/VTK,keithroe/vtkoptix,SimVascular/VTK,berendkleinhaneveld/VTK,biddisco/VTK,candy7393/VTK,jmerkow/VTK,berendkleinhaneveld/VTK,biddisco/VTK,berendkleinhaneveld/VTK,demarle/VTK,biddisco/VTK,ashray/VTK-EVM,biddisco/VTK,cjh1/VTK,msmolens/VTK,berendkleinhaneveld/VTK,demarle/VTK,aashish24/VTK-old,hendradarwin/VTK,jmerkow/VTK,cjh1/VTK,SimVascular/VTK,ashray/VTK-EVM,candy7393/VTK,msmolens/VTK,demarle/VTK,berendkleinhaneveld/VTK,hendradarwin/VTK,SimVascular/VTK,sumedhasingla/VTK,jmerkow/VTK,johnkit/vtk-dev,SimVascular/VTK,mspark93/VTK,biddisco/VTK,candy7393/VTK,jmerkow/VTK,SimVascular/VTK,keithroe/vtkoptix,mspark93/VTK,berendkleinhaneveld/VTK,collects/VTK,cjh1/VTK,keithroe/vtkoptix,sankhesh/VTK,gram526/VTK,sankhesh/VTK,demarle/VTK,jmerkow/VTK,demarle/VTK,johnkit/vtk-dev,aashish24/VTK-old,johnkit/vtk-dev,sankhesh/VTK,sankhesh/VTK,ashray/VTK-EVM,SimVascular/VTK,msmolens/VTK,johnkit/vtk-dev,msmolens/VTK,collects/VTK,gram526/VTK,candy7393/VTK,gram526/VTK,cjh1/VTK,sumedhasingla/VTK,mspark93/VTK,ashray/VTK-EVM,sumedhasingla/VTK,msmolens/VTK,sumedhasingla/VTK,collects/VTK,jmerkow/VTK,candy7393/VTK,aashish24/VTK-old,ashray/VTK-EVM,mspark93/VTK,mspark93/VTK,sankhesh/VTK,sumedhasingla/VTK,gram526/VTK,demarle/VTK,aashish24/VTK-old,mspark93/VTK,johnkit/vtk-dev,sumedhasingla/VTK,ashray/VTK-EVM,hendradarwin/VTK,msmolens/VTK,collects/VTK,gram526/VTK,ashray/VTK-EVM,sumedhasingla/VTK,cjh1/VTK,msmolens/VTK