mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
Prevent the parent from drawing over OpenGL context.
This commit is contained in:
parent
a31b29308f
commit
7cd198623e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user