mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Merge pull request #1641 from jet47:imshow-opengl-fix
This commit is contained in:
commit
d700cc60be
@ -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…
Reference in New Issue
Block a user