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

Matteo Bruni mbruni at codeweavers.com
Mon Sep 26 17:04:15 CDT 2016


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)
-- 
2.7.3




More information about the wine-patches mailing list