Merge pull request #3996 from Ashod:opengl_context_clip

pull/4006/head
Vadim Pisarevsky 10 years ago
commit d3ef3cff94
  1. 5
      modules/highgui/src/window_w32.cpp

@ -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 if( !(flags & CV_WINDOW_AUTOSIZE))//YV add border in order to resize the window
defStyle |= WS_SIZEBOX; defStyle |= WS_SIZEBOX;
#ifdef HAVE_OPENGL
if (flags & CV_WINDOW_OPENGL)
defStyle |= WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
#endif
icvLoadWindowPos( name, rect ); icvLoadWindowPos( name, rect );
mainhWnd = CreateWindow( "Main HighGUI class", name, defStyle | WS_OVERLAPPED, mainhWnd = CreateWindow( "Main HighGUI class", name, defStyle | WS_OVERLAPPED,

Loading…
Cancel
Save