dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
753 stars 300 forks source link

Added CreateWithShareLists method to FBORenderContextProvider #147

Closed RossBatten closed 5 years ago

RossBatten commented 6 years ago

It's currently impossible to use wglsharelists on an FBO render context due to its creation of frame buffers on calling the Create method. Creating the frame buffers disqualifies it from being able to be shared so I made a method called CreateWithShareLists that allows a user to create the render context with a provided render context handle to share with. The share link is then made prior to creation of the frame buffers.

dwmkerr commented 5 years ago

Awesome, thanks!