Merge pull request #2280 from ilya-lavrenov:attempt_pvc
This commit is contained in:
commit
564f5fcca3
@ -221,8 +221,8 @@ public:
|
||||
|
||||
MatAllocator* Mat::getStdAllocator()
|
||||
{
|
||||
static StdMatAllocator allocator;
|
||||
return &allocator;
|
||||
static MatAllocator * allocator = new StdMatAllocator();
|
||||
return allocator;
|
||||
}
|
||||
|
||||
void swap( Mat& a, Mat& b )
|
||||
|
@ -3959,8 +3959,8 @@ public:
|
||||
|
||||
MatAllocator* getOpenCLAllocator()
|
||||
{
|
||||
static OpenCLAllocator allocator;
|
||||
return &allocator;
|
||||
static MatAllocator * allocator = new OpenCLAllocator();
|
||||
return allocator;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////// Utility functions /////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user