fix imshow under Windows with OpenGL support:

we doesn't create OpenGL windows by default
OpenGL window must be created by user via namedWindow
This commit is contained in:
Vladislav Vinogradov 2013-10-17 20:54:43 +04:00
parent 578e984739
commit fa70f95272

View File

@ -1087,12 +1087,7 @@ cvShowImage( const char* name, const CvArr* arr )
window = icvFindWindowByName(name);
if(!window)
{
#ifndef HAVE_OPENGL
cvNamedWindow(name, CV_WINDOW_AUTOSIZE);
#else
cvNamedWindow(name, CV_WINDOW_AUTOSIZE | CV_WINDOW_OPENGL);
#endif
cvNamedWindow(name, CV_WINDOW_AUTOSIZE);
window = icvFindWindowByName(name);
}