[PATCH 2/5] wined3d: Make use of WGL_WINE_make_current extension to restore the previous GL context without reference to its DC.

Henri Verbeet hverbeet at gmail.com
Mon Feb 24 09:16:02 CST 2014


On 24 February 2014 15:39, Ken Thomases <ken at codeweavers.com> wrote:
> On Feb 24, 2014, at 4:53 AM, Henri Verbeet wrote:
>
>> On 23 February 2014 23:58, Ken Thomases <ken at codeweavers.com> wrote:
>>> +    if (gl_info->supported[WGL_WINE_MAKE_CURRENT] &&
>>> +        !(gl_info->p_wglMakeContextCurrentWINE = (void *)wglGetProcAddress("wglMakeContextCurrentWINE")))
>>> +        gl_info->supported[WGL_WINE_MAKE_CURRENT] = FALSE;
>> Why can't load_gl_funcs() take care of this?
>
> The WGL extensions haven't been parsed by the time load_gl_funcs() is called.
>
Yes, but load_gl_funcs() doesn't depend on that.



More information about the wine-devel mailing list