Commit d700cc60 authored by Roman Donchenko's avatar Roman Donchenko Committed by OpenCV Buildbot

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

parents df279150 fa70f952
...@@ -1087,12 +1087,7 @@ cvShowImage( const char* name, const CvArr* arr ) ...@@ -1087,12 +1087,7 @@ cvShowImage( const char* name, const CvArr* arr )
window = icvFindWindowByName(name); window = icvFindWindowByName(name);
if(!window) if(!window)
{ {
#ifndef HAVE_OPENGL cvNamedWindow(name, CV_WINDOW_AUTOSIZE);
cvNamedWindow(name, CV_WINDOW_AUTOSIZE);
#else
cvNamedWindow(name, CV_WINDOW_AUTOSIZE | CV_WINDOW_OPENGL);
#endif
window = icvFindWindowByName(name); window = icvFindWindowByName(name);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment