From 0d0732a41d16163a3456c4754b62ff089f94b97d Mon Sep 17 00:00:00 2001 From: "Thinker K.F. Li" Date: Thu, 17 Sep 2015 03:31:00 +0200 Subject: [PATCH] Bug 1097464 - Part 1 - Remove Z value from 3D transforms for D3D9. r=roc,matt.woodrow --- gfx/layers/d3d9/CompositorD3D9.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/layers/d3d9/CompositorD3D9.cpp b/gfx/layers/d3d9/CompositorD3D9.cpp index 8774131ec07..3cd28b55ff1 100644 --- a/gfx/layers/d3d9/CompositorD3D9.cpp +++ b/gfx/layers/d3d9/CompositorD3D9.cpp @@ -692,6 +692,7 @@ CompositorD3D9::PrepareViewport(const gfx::IntSize& aSize) viewMatrix._22 = -2.0f / aSize.height; viewMatrix._41 = -1.0f; viewMatrix._42 = 1.0f; + viewMatrix._33 = 0.0f; HRESULT hr = device()->SetVertexShaderConstantF(CBmProjection, &viewMatrix._11, 4);