Fix some bugs in D3D11 compositor.