From 3f04db551da48e25930f55eb33ea9b8b626f70f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sat, 26 Jan 2019 18:09:57 +0100 Subject: [PATCH] Ensure correct alpha is returned even for broken 565 textures. --- impl11/shaders/PixelShaderAtest565.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impl11/shaders/PixelShaderAtest565.hlsl b/impl11/shaders/PixelShaderAtest565.hlsl index dccbe008..1ebc38a9 100644 --- a/impl11/shaders/PixelShaderAtest565.hlsl +++ b/impl11/shaders/PixelShaderAtest565.hlsl @@ -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); }