summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-09-09 11:59:50 +0800
committerChia-I Wu <[email protected]>2011-09-09 15:48:10 +0800
commit8adaed934727f9efa61686ffe0f528d40c693862 (patch)
tree0153f1b3527177cf3d07f2bd0cd37b0dbcf1bb35 /src/gallium/state_trackers
parent29361e14df8e5e92df747d52303da2c454e2cacc (diff)
d3d1x: fix a build error
Fix for the st/egl interface change since 08e1076fd2d3f6fb879dd2529e7d035d6a399da2.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp7
1 files changed, 4 insertions, 3 deletions
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 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: