Ruslan Kabatsayev : wined3d: Initialise p_wglGetPixelFormat when USE_WIN32_OPENGL is defined.

Alexandre Julliard julliard at
Mon Dec 19 13:10:36 CST 2016

Module: wine
Branch: stable
Commit: 9732bcbcc0a06650d182e9701fe7e5aaac33e3db

Author: Ruslan Kabatsayev <b7.10110111 at>
Date:   Fri Sep  2 12:40:19 2016 +0200

wined3d: Initialise p_wglGetPixelFormat when USE_WIN32_OPENGL is defined.

This fixes a regression introduced by commit

Signed-off-by: Ruslan Kabatsayev <b7.10110111 at>
Signed-off-by: Henri Verbeet <hverbeet at>
Signed-off-by: Alexandre Julliard <julliard at>
(cherry picked from commit c2e316a3e6afaf1eea05a9f86f9e5275cbfcf9e6)
Signed-off-by: Michael Stefaniuc <mstefani at>


 dlls/wined3d/directx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index c07c7ff..3b0f32b 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -5931,6 +5931,7 @@ static BOOL wined3d_adapter_init(struct wined3d_adapter *adapter, UINT ordinal)
 #undef USE_GL_FUNC
         gl_info->gl_ops.wgl.p_wglSwapBuffers = (void *)GetProcAddress(mod_gl, "wglSwapBuffers");
+        gl_info->gl_ops.wgl.p_wglGetPixelFormat = (void *)GetProcAddress(mod_gl, "wglGetPixelFormat");
     /* To bypass the opengl32 thunks retrieve functions from the WGL driver instead of opengl32 */

More information about the wine-cvs mailing list