From: Chia-I Wu Date: Fri, 9 Sep 2011 03:59:50 +0000 (+0800) Subject: d3d1x: fix a build error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8adaed934727f9efa61686ffe0f528d40c693862;p=mesa.git d3d1x: fix a build error Fix for the st/egl interface change since 08e1076fd2d3f6fb879dd2529e7d035d6a399da2. --- diff --git a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp index 0c80738b7ab..2bf001261eb 100644 --- a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp +++ b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp @@ -1106,7 +1106,7 @@ struct GalliumDXGISwapChain : public GalliumDXGIObjectbackend->BeginPresent(desc.OutputWindow, &present_cookie, &cur_window, &rect, &rgndata, &preserve_aspect_ratio); @@ -1236,8 +1236,9 @@ struct GalliumDXGISwapChain : public GalliumDXGIObjectflush(pipe, 0); - att = (db) ? NATIVE_ATTACHMENT_BACK_LEFT : NATIVE_ATTACHMENT_FRONT_LEFT; - if(!surface->present(surface, att, FALSE, 0)) + memset(&ctrl, 0, sizeof(ctrl)); + ctrl.natt = (db) ? NATIVE_ATTACHMENT_BACK_LEFT : NATIVE_ATTACHMENT_FRONT_LEFT; + if(!surface->present(surface, &ctrl)) return DXGI_ERROR_DEVICE_REMOVED; end_present: