Bug 587566 - Enable Depth/Clip to allow D2D for non DX10 devices; r=bas.schouten approval2.0=joe
authorRob Arnold <tellrob@gmail.com>
Thu, 19 Aug 2010 09:28:14 +0100
changeset 50872 3ec65c47a51a24a353b8c3b08f0209046732dd66
parent 50871 b31297228daa3801c7b851ba9a88aacbc818a3bc
child 50873 5a3b5dbd2929769d338e97eef8903591e21f999f
push id15185
push userbugzilla@standard8.plus.com
push dateThu, 19 Aug 2010 08:29:47 +0000
treeherderautoland@3ec65c47a51a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas.schouten
bugs587566
milestone2.0b5pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 587566 - Enable Depth/Clip to allow D2D for non DX10 devices; r=bas.schouten approval2.0=joe
gfx/cairo/cairo/src/cairo-d2d-surface.cpp
--- a/gfx/cairo/cairo/src/cairo-d2d-surface.cpp
+++ b/gfx/cairo/cairo/src/cairo-d2d-surface.cpp
@@ -233,16 +233,17 @@ cairo_d2d_create_device_from_d3d10device
     hr = device->mD3D10Device->CreateBuffer(&bufferDesc, &data, &device->mQuadBuffer);
     if (FAILED(hr)) {
 	goto FAILED;
     }
 
     memset(&rastDesc, 0, sizeof(rastDesc));
     rastDesc.CullMode = D3D10_CULL_NONE;
     rastDesc.FillMode = D3D10_FILL_SOLID;
+    rastDesc.DepthClipEnable = TRUE;
     hr = device->mD3D10Device->CreateRasterizerState(&rastDesc, &device->mRasterizerState);
     if (FAILED(hr)) {
 	goto FAILED;
     }
     device->base.refcount = 1;
     device->mVRAMUsage = 0;
 
     return &device->base;