Hey hi ,
I have a Scenario , where
I created first window and initialized the OpenGL 3.3 Context and i’m able to render the texture on Window,
but now I have Created another second window with OpenGL initialized , so it’s having it’s own HDC, HGLRC and HWND so i want to use the texture buffer from first window , to render in second window.
it’s running in Same process ,
first window rendering with its own HGLRC , HWND and HDC,
but now the texture loaded by first window to texture buffer , i have to reuse in second window which having it’s own HGLRC , HWND and HDC,
how do i share texture buffer between two rendering contexts within same process but between different threads , in which all thread have capabilities to render
on it’s own window.
so here every window have it’s own Opengl initialization for context , and can able to render on its own window
problem to solve is to share the texture between these two rendering threads which render same texture buffer .