[PATCH 5/5] wined3d: Call glGetIntegerv() through the gl_info function pointer.

Józef Kucia joseph.kucia at gmail.com
Tue Sep 27 02:23:57 CDT 2016


On Tue, Sep 27, 2016 at 12:04 AM, Matteo Bruni <mbruni at codeweavers.com> wrote:
> Fixes a1e718ccabc7c330dd16c7face78022965b03e20.
>
> Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
> ---
>  dlls/wined3d/directx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
> index 7ab68aa..05e04e8 100644
> --- a/dlls/wined3d/directx.c
> +++ b/dlls/wined3d/directx.c
> @@ -3629,7 +3629,7 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter, DWORD
>
>      if (gl_version >= MAKEDWORD_VERSION(3, 2))
>      {
> -        glGetIntegerv(GL_CONTEXT_PROFILE_MASK, &context_profile);
> +        gl_info->gl_ops.gl.p_glGetIntegerv(GL_CONTEXT_PROFILE_MASK, &context_profile);
>          checkGLcall("Querying context profile");
>      }
>      if (context_profile & GL_CONTEXT_CORE_PROFILE_BIT)

FWIW, there are other places where GL functions aren't called through
gl_ops. I've got patches to fix others.



More information about the wine-devel mailing list