Skip to content

Commit

Permalink
Ensure correct alpha is returned even for broken 565 textures.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdoeffinger committed Jan 26, 2019
1 parent 0f93aca commit 3f04db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl11/shaders/PixelShaderAtest565.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ float4 main(PixelShaderInput input) : SV_TARGET
// so we explicitly check only varying alpha.
if (input.color.a == 0) discard;
texelColor *= input.color;
return texelColor;
return float4(texelColor.rgb, input.color.a);
}

0 comments on commit 3f04db5

Please sign in to comment.