diff --git a/Source/OpenTK/Graphics/GraphicsContext.cs b/Source/OpenTK/Graphics/GraphicsContext.cs index 6737d38f..f464fb89 100644 --- a/Source/OpenTK/Graphics/GraphicsContext.cs +++ b/Source/OpenTK/Graphics/GraphicsContext.cs @@ -122,6 +122,16 @@ namespace OpenTK.Graphics } } + /// + /// Constructs a new GraphicsContext from a pre-existing context created outside of OpenTK. + /// + /// The handle of the existing context. This must be a valid, unique handle that is not known to OpenTK. + /// The window this context is bound to. This must be a valid window obtained through Utilities.CreateWindowInfo. + /// Occurs if handle is identical to a context already registered with OpenTK. + public GraphicsContext(ContextHandle handle, IWindowInfo window) + : this(handle, window, null, 1, 0, GraphicsContextFlags.Default) + { } + /// /// Constructs a new GraphicsContext from a pre-existing context created outside of OpenTK. ///