1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-28 23:03:03 +04:00

ocl: code cleanup, fix .clb files

This commit is contained in:
Alexander Alekhin
2013-10-11 01:16:12 +04:00
parent ad1ba56fcf
commit 238550cdad
6 changed files with 28 additions and 59 deletions
+3 -8
View File
@@ -110,17 +110,12 @@ void ProgramCache::releaseProgram()
cacheSize = 0;
}
static int enable_disk_cache = true ||
#ifdef _DEBUG
false;
#else
true;
#endif
static bool enable_disk_cache = true;
static String binpath = "";
void setBinaryDiskCache(int mode, String path)
{
enable_disk_cache = 0;
enable_disk_cache = false;
binpath = "";
if(mode == CACHE_NONE)
@@ -128,7 +123,7 @@ void setBinaryDiskCache(int mode, String path)
return;
}
enable_disk_cache =
#ifdef _DEBUG
#if defined(_DEBUG) || defined(DEBUG)
(mode & CACHE_DEBUG) == CACHE_DEBUG;
#else
(mode & CACHE_RELEASE) == CACHE_RELEASE;