d3d1x: fix a build error
authorChia-I Wu <olv@lunarg.com>
Fri, 9 Sep 2011 03:59:50 +0000 (11:59 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 9 Sep 2011 07:48:10 +0000 (15:48 +0800)
Fix for the st/egl interface change since
08e1076fd2d3f6fb879dd2529e7d035d6a399da2.

src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp

index 0c80738b7ab4a5954fd53bcc12ae95c12358ba95..2bf001261eb80e0e90d7eea1a0cacbac60aca984 100644 (file)
@@ -1106,7 +1106,7 @@ struct GalliumDXGISwapChain : public GalliumDXGIObject<IDXGISwapChain, GalliumDX
                struct pipe_resource* dst;
                struct pipe_resource* src;
                struct pipe_surface* dst_surface;
-               enum native_attachment att;
+               struct native_present_control ctrl;
 
                void* present_cookie;
                hr = parent->backend->BeginPresent(desc.OutputWindow, &present_cookie, &cur_window, &rect, &rgndata, &preserve_aspect_ratio);
@@ -1236,8 +1236,9 @@ struct GalliumDXGISwapChain : public GalliumDXGIObject<IDXGISwapChain, GalliumDX
 
                 pipe->flush(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: