implementation = factory.CreateGLContext(mode, window, shareContext, direct_rendering, major, minor, flags);
handle_cached = ((IGraphicsContextInternal)implementation).Context;
+ factory.RegisterResource(this);
}
AddContext(this);
this.options = options;
this.device = device;
- implementation = Factory.Default.CreateNativeWindow(x, y, width, height, title, mode, options, this.device);
+ IPlatformFactory factory = Factory.Default;
+ implementation = factory.CreateNativeWindow(x, y, width, height, title, mode, options, this.device);
+ factory.RegisterResource(this);
if ((options & GameWindowFlags.Fullscreen) != 0)
{