Merge pull request #1641 from jet47:imshow-opengl-fix

pull/1459/merge
Roman Donchenko 11 years ago committed by OpenCV Buildbot
commit d700cc60be
  1. 7
      modules/highgui/src/window_w32.cpp

@ -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);
}

Loading…
Cancel
Save