From bb73ec7060379e4cfaf27dea0664d0c9fed0f6ba Mon Sep 17 00:00:00 2001 From: espes Date: Fri, 14 Aug 2015 11:07:27 +1000 Subject: [PATCH] the other components of alpha textures should probably be 1 https://github.com/bminor/mesa-mesa/blob/7fccebf9803973c7403318da20afe23e80b5b59f/src/gallium/auxiliary/util/u_pack_color.h#L259 --- hw/xbox/nv2a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xbox/nv2a.c b/hw/xbox/nv2a.c index 04fd925c05..066e8334b3 100644 --- a/hw/xbox/nv2a.c +++ b/hw/xbox/nv2a.c @@ -1154,7 +1154,7 @@ static const ColorFormatInfo kelvin_color_format_map[66] = { {4, true, GL_RGBA8, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV}, [NV097_SET_TEXTURE_FORMAT_COLOR_SZ_A8] = {1, false, GL_R8, GL_RED, GL_UNSIGNED_BYTE, - {GL_ZERO, GL_ZERO, GL_ZERO, GL_RED}}, + {GL_ONE, GL_ONE, GL_ONE, GL_RED}}, [NV097_SET_TEXTURE_FORMAT_COLOR_SZ_A8Y8] = {2, false, GL_RG8, GL_RG, GL_UNSIGNED_BYTE, {GL_BLUE, GL_BLUE, GL_BLUE, GL_RED}},