From e7fd0534780522dac5a7448f47098d1b49c17337 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 21 Oct 2013 19:48:36 +0400 Subject: [PATCH] ocl: fix FFT initialization --- modules/ocl/src/fft.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ocl/src/fft.cpp b/modules/ocl/src/fft.cpp index 6e4fc4d..50880f9 100644 --- a/modules/ocl/src/fft.cpp +++ b/modules/ocl/src/fft.cpp @@ -126,7 +126,8 @@ void cv::ocl::fft_setup() { return; } - pCache.setupData = new clAmdFftSetupData; + if (pCache.setupData == NULL) + pCache.setupData = new clAmdFftSetupData; openCLSafeCall(clAmdFftInitSetupData( pCache.setupData )); pCache.started = true; } -- 2.7.4