[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 04:53:13 CST 2014


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?

>      {"WGL_WINE_pixel_format_passthrough",   WGL_WINE_PIXEL_FORMAT_PASSTHROUGH},
> +    {"WGL_WINE_make_current",               WGL_WINE_MAKE_CURRENT},
...
>      WGL_WINE_PIXEL_FORMAT_PASSTHROUGH,
> +    WGL_WINE_MAKE_CURRENT,
With the (obvious) exceptions of WINED3D_GL_EXT_NONE and
WINED3D_GL_EXT_COUNT, the wined3d_gl_extension enum is supposed to be
in lexicographical order.



More information about the wine-devel mailing list