https://bugs.winehq.org/show_bug.cgi?id=49077
--- Comment #16 from Henri Verbeet hverbeet@gmail.com --- (In reply to RC from comment #15)
Created attachment 67064 [details] d3d trace showing context 0x65f87d0
WINEDBUG=+d3d trace showing use of context 0x65f87d0 before crash
I'm not sure whether you're saying it is, but note that context 0x65f87d0 is not new:
00f8:trace:d3d:wined3d_swapchain_gl_create_context Creating a new context for swapchain 0x65dcc00, thread 248. 00f8:trace:d3d:wined3d_context_gl_init context_gl 0x65f87d0, swapchain 0x65dcc00. 00f8:trace:d3d:context_choose_pixel_format device 0x65fa338, dc 0x190069, color_format WINED3DFMT_B8G8R8A8_UNORM, ds_format WINED3DFMT_UNKNOWN, aux_buffers 0. 00f8:trace:d3d:context_choose_pixel_format Found iPixelFormat=5 for ColorFormat=WINED3DFMT_B8G8R8A8_UNORM, DepthStencilFormat=WINED3DFMT_UNKNOWN. 00f8:trace:d3d:wined3d_context_gl_enter Entering context 0x65f87d0, level 1. 00f8:trace:d3d:wined3d_context_gl_set_current Switching to D3D context 0x65f87d0, GL context 0x23001, device context 0x190069. 00f8:trace:d3d:wined3d_context_gl_init Setting up the screen 00f8:trace:d3d:device_context_add Adding context 0x65f87d0. 00f8:trace:d3d:wined3d_swapchain_gl_create_context Created context 0x65f87d0.
Note also that nouveau is known to have some issues with using multiple GL contexts. That's not generally an issue for wined3d because the command stream serialises GL calls, but would be for applications that use multiple D3D devices concurrently. A quick test would be to force usage of llvmpipe by running with "LIBGL_ALWAYS_SOFTWARE=1" set.