Bug 1276359 - Fix D3D11 Shader Compile Failure draft
authorkearwood
Fri, 27 May 2016 13:37:52 -0700
changeset 372235 8610b6edacfd594289a315023082686ba53fe18d
parent 371406 b0096c5c727749ad3e79cbdf20d2e96bd179c213
child 522144 dd62324655528b8b84d8b48d51fe68f52d15fe97
push id19488
push userkgilbert@mozilla.com
push dateFri, 27 May 2016 20:38:04 +0000
bugs1276359
milestone49.0a1
Bug 1276359 - Fix D3D11 Shader Compile Failure MozReview-Commit-ID: 6t02t473FFg
gfx/layers/d3d11/CompositorD3D11.hlsl
--- a/gfx/layers/d3d11/CompositorD3D11.hlsl
+++ b/gfx/layers/d3d11/CompositorD3D11.hlsl
@@ -316,17 +316,17 @@ float4 ComputeBlendSourceColor(const VS_
     if (iBlendConfig.x == PS_LAYER_RGB) {
       return RGBShader(tmp);
     } else if (iBlendConfig.x == PS_LAYER_RGBA) {
       return RGBAShader(tmp);
     } else if (iBlendConfig.x == PS_LAYER_YCBCR) {
       return YCbCrShader(tmp);
     }
     return SolidColorShader(tmp);
-  } else if (iBlendConfig.y == PS_MASK_2D) {
+  } else if (iBlendConfig.y == PS_MASK) {
     VS_MASK_OUTPUT tmp;
     tmp.vPosition = aVertex.vPosition;
     tmp.vTexCoords = aVertex.vTexCoords;
     tmp.vMaskCoords = aVertex.vMaskCoords;
 
     if (iBlendConfig.x == PS_LAYER_RGB) {
       return RGBShaderMask(tmp);
     } else if (iBlendConfig.x == PS_LAYER_RGBA) {