fixed compilation with CUDA

This commit is contained in:
Vladislav Vinogradov
2013-04-04 11:00:36 +04:00
parent 6ef43cd96e
commit bf6c08a9ea
6 changed files with 8 additions and 7 deletions

View File

@@ -1096,10 +1096,7 @@ cvShowImage( const char* name, const CvArr* arr )
#ifdef HAVE_OPENGL
if (window->useGl)
{
CvMat stub;
CvMat* mat = cvGetMat(arr, &stub);
cv::Mat im(mat);
cv::imshow(name, im);
cv::imshow(name, cv::cvarrToMat(arr));
return;
}
#endif