more than one grafic in one window??


I would like to display more than one openGL grafic in one window. If I run my program with two different openGL grafics in one window, it shows one expected and one black grafic. It seems to be that the last initialized grafic overrides the other grafic.

Do somebody know how to solve my problem??

Thanks a lot…

One single HWND cannot have more than one opengl init. if you want to have 2 openglviews you’d better use one openglContext and separate them with glViewport ( both must do a swap at the same time) or create 2 ‘sub’ windows ( borderless windows with your normal window as parent) and init opengl in those. ( everything with a hwnd and a HDC can init opengl, ive tried in a textbox )