[PATCH] wined3d: WINED3DFMT_B5G5R5X1_UNORM doesn't have an alpha channel.
Stefan Dösinger
stefan at codeweavers.com
Wed Sep 30 08:31:14 CDT 2015
This fixes bug 39341. The color keying conversion was nice enough to set
alpha = 1 where it mattered, making the game work by luck.
Signed-off-by: Stefan Dösinger <stefan at codeweavers.com>
---
dlls/wined3d/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index d31c285..aa6eb62 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -1024,7 +1024,7 @@ static const struct wined3d_format_texture_info format_texture_info[] =
WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING | WINED3DFMT_FLAG_FILTERING
| WINED3DFMT_FLAG_RENDERTARGET,
ARB_ES2_COMPATIBILITY, NULL},
- {WINED3DFMT_B5G5R5X1_UNORM, GL_RGB5, GL_RGB5_A1, 0,
+ {WINED3DFMT_B5G5R5X1_UNORM, GL_RGB5, GL_RGB5, 0,
GL_BGRA, GL_UNSIGNED_SHORT_1_5_5_5_REV, 0,
WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING | WINED3DFMT_FLAG_FILTERING,
WINED3D_GL_EXT_NONE, NULL},
--
2.4.9
More information about the wine-patches
mailing list