summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/d3d1x
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-09-24 09:12:33 +0200
committerLuca Barbieri <[email protected]>2010-09-24 09:15:49 +0200
commit54ee7721a142f57c932f77e6a33af6874320cdc0 (patch)
tree2a9d09efc100891266246f19cad64a7f53e53dd8 /src/gallium/state_trackers/d3d1x
parent0f4ec3f72ce66e4c56af9bb832c7c4cd2015901e (diff)
d3d1x: draw to the correct buffer
Diffstat (limited to 'src/gallium/state_trackers/d3d1x')
-rw-r--r--src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp2
1 files changed, 1 insertions, 1 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 74bce598ae2..ef256a80c79 100644
--- a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
+++ b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
@@ -1045,7 +1045,7 @@ struct GalliumDXGISwapChain : public GalliumDXGIObject<IDXGISwapChain, GalliumDX
return DXGI_ERROR_DEVICE_REMOVED;
}
- db = !!(config->buffer_mask & NATIVE_ATTACHMENT_BACK_LEFT);
+ db = !!(config->buffer_mask & (1 << NATIVE_ATTACHMENT_BACK_LEFT));
dst = resources[db ? NATIVE_ATTACHMENT_BACK_LEFT : NATIVE_ATTACHMENT_FRONT_LEFT];
src = gallium_buffer0;
dst_surface = 0;