fix out of bounds pointer access when given 1D texture
fix out of bounds pointer access when given 1D texture

This started showing up on Dash3 in TestControlPointsHandleItem
a few weeks back. I suspect driver change caused the resample path
to start being exercised there.

Change-Id: I98e9afea200c4b5ccfa44b2523f09590efb9ac35

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