wined3d: Use the "adapter" local variable in swapchain_init().

This commit is contained in:
Henri Verbeet 2013-08-19 10:50:52 +02:00 committed by Alexandre Julliard
parent b2721d5f9c
commit 390543dd02
1 changed files with 2 additions and 2 deletions

View File

@ -925,7 +925,7 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, struct wined3
mode.refresh_rate = desc->refresh_rate; mode.refresh_rate = desc->refresh_rate;
mode.scanline_ordering = WINED3D_SCANLINE_ORDERING_UNKNOWN; mode.scanline_ordering = WINED3D_SCANLINE_ORDERING_UNKNOWN;
if (FAILED(hr = wined3d_set_adapter_display_mode(device->wined3d, device->adapter->ordinal, &mode))) if (FAILED(hr = wined3d_set_adapter_display_mode(device->wined3d, adapter->ordinal, &mode)))
{ {
WARN("Failed to set display mode, hr %#x.\n", hr); WARN("Failed to set display mode, hr %#x.\n", hr);
goto err; goto err;
@ -944,7 +944,7 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, struct wined3
WINED3DFMT_S1_UINT_D15_UNORM WINED3DFMT_S1_UINT_D15_UNORM
}; };
const struct wined3d_gl_info *gl_info = &device->adapter->gl_info; const struct wined3d_gl_info *gl_info = &adapter->gl_info;
swapchain->context = HeapAlloc(GetProcessHeap(), 0, sizeof(*swapchain->context)); swapchain->context = HeapAlloc(GetProcessHeap(), 0, sizeof(*swapchain->context));
if (!swapchain->context) if (!swapchain->context)