GlContext* GlContext::New(const WindowImpl* owner, unsigned int bitsPerPixel, const ContextSettings& settings) { ContextType* context = new ContextType(&referenceContext, owner, bitsPerPixel, settings); // Enable antialiasing if needed if (context->GetSettings().AntialiasingLevel > 0) glEnable(GL_MULTISAMPLE_ARB); return context; }