1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #3996 from Ashod:opengl_context_clip

This commit is contained in:
Vadim Pisarevsky
2015-05-12 15:06:31 +00:00
+5
View File
@@ -739,6 +739,11 @@ CV_IMPL int cvNamedWindow( const char* name, int flags )
if( !(flags & CV_WINDOW_AUTOSIZE))//YV add border in order to resize the window
defStyle |= WS_SIZEBOX;
#ifdef HAVE_OPENGL
if (flags & CV_WINDOW_OPENGL)
defStyle |= WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
#endif
icvLoadWindowPos( name, rect );
mainhWnd = CreateWindow( "Main HighGUI class", name, defStyle | WS_OVERLAPPED,