Bug 1097464 - Part 1 - Remove Z value from 3D transforms for D3D9. r=roc,matt.woodrow

This commit is contained in:
Thinker K.F. Li 2015-09-17 03:31:00 +02:00
parent 68663347da
commit a4c2346c7e

View File

@ -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);