cuda: fix CUDA 12.0 build errors
authorcudawarped <12133430+cudawarped@users.noreply.github.com>
Mon, 26 Dec 2022 07:09:25 +0000 (09:09 +0200)
committercudawarped <12133430+cudawarped@users.noreply.github.com>
Mon, 26 Dec 2022 13:25:29 +0000 (15:25 +0200)
modules/core/include/opencv2/core/cuda/common.hpp

index 348bdf1..1348096 100644 (file)
@@ -99,7 +99,6 @@ namespace cv { namespace cuda
         }
 
 #if (CUDART_VERSION >= 12000)
-        template<class T> inline void bindTexture(const textureReference* tex, const PtrStepSz<T>& img) { CV_Error(cv::Error::GpuNotSupported, "Function removed in CUDA SDK 12"); }
         template<class T> inline void createTextureObjectPitch2D(cudaTextureObject_t* tex, PtrStepSz<T>& img, const cudaTextureDesc& texDesc) {
             CV_Error(cv::Error::GpuNotSupported, "Function removed in CUDA SDK 12"); }
 #else
@@ -123,8 +122,8 @@ namespace cv { namespace cuda
 
             cudaSafeCall( cudaCreateTextureObject(tex, &resDesc, &texDesc, NULL) );
         }
-    }
 #endif
+    }
 }}
 
 //! @endcond