wgl: check for various WGL extensions and fetch their funcptrs
commit6e3984829cbab2c1b2dbbe7c1101de95987ab12f
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 22 Jul 2014 23:35:15 +0000 (23 00:35 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 9 Nov 2014 22:44:07 +0000 (9 22:44 +0000)
tree76fda7107118706d112b173d10ecbcaf16b6cec7
parentfb6b46d4b49e3b352d775fe90f5678456b260010
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>
src/waffle/wgl/wgl_display.c
src/waffle/wgl/wgl_display.h