[Bug 41224] WineD3D8 crashes on Windows with GTAVC and i915-class video

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Aug 29 13:54:10 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=41224

--- Comment #5 from Ruslan Kabatsayev <b7.10110111 at gmail.com> ---
(In reply to Henri Verbeet from comment #4)
> That said, it may just be a matter of adding wglGetPixelFormat() in the
> "USE_WIN32_OPENGL" block in wined3d_adapter_init(), similar to
> wglSwapBuffers().
Yes, this does appear to fix it:

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 4213df3..b97cd78 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -6143,6 +6143,7 @@ static BOOL wined3d_adapter_init(struct wined3d_adapter
*adapter, UINT ordinal,
         ALL_WGL_FUNCS
 #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");
     }
 #else
     /* To bypass the opengl32 thunks retrieve functions from the WGL driver
instead of opengl32 */

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list