mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1256498. Explicitly convert to float. r=bas
This commit is contained in:
parent
531a753e23
commit
c03e235186
@ -266,7 +266,7 @@ CompositorD3D9::DrawQuad(const gfx::Rect &aRect,
|
||||
d3d9Device->SetVertexShaderConstantF(CBmLayerTransform, &aTransform._11, 4);
|
||||
|
||||
IntPoint origin = mCurrentRT->GetOrigin();
|
||||
float renderTargetOffset[] = { origin.x, origin.y, 0, 0 };
|
||||
float renderTargetOffset[] = { float(origin.x), float(origin.y), 0, 0 };
|
||||
d3d9Device->SetVertexShaderConstantF(CBvRenderTargetOffset,
|
||||
renderTargetOffset,
|
||||
1);
|
||||
|
Loading…
Reference in New Issue
Block a user