From ff55f1fe3ee5a72e3649daf9e028ca01a9fb4270 Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Fri, 24 Jul 2015 14:58:00 +0200 Subject: [PATCH] Fix texture format SZ_A8 (0x19) --- 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 ead152d594..30b462b85e 100644 --- a/hw/xbox/nv2a.c +++ b/hw/xbox/nv2a.c @@ -1175,7 +1175,7 @@ static const ColorFormatInfo kelvin_color_format_map[66] = { [NV097_SET_TEXTURE_FORMAT_COLOR_LU_IMAGE_A8R8G8B8] = {4, true, GL_RGBA8, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV}, [NV097_SET_TEXTURE_FORMAT_COLOR_SZ_A8] = - {2, false, GL_R8, GL_RED, GL_UNSIGNED_BYTE, + {1, false, GL_R8, GL_RED, GL_UNSIGNED_BYTE, {GL_ZERO, GL_ZERO, GL_ZERO, GL_RED}}, [NV097_SET_TEXTURE_FORMAT_COLOR_LU_IMAGE_X8R8G8B8] = {4, true, GL_RGB8, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV},