wgl: check for various WGL extensions and fetch their funcptrs
Our assumption is that the original (root) context has the same
WGL core functions and any context created after that. Additionally
the wglCreateContextAttribsARB and wglChoosePixelFormatARB functions
and their pointers will remain constant across the creation of the
actual (working) context. Similar logic is used by SDL, xserver and
others.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>