From a8d8ef5484686ab53e67ae10363747eec7eb6729 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Mon, 22 Jul 2024 23:32:51 -0700 Subject: [PATCH] nv2a: Drop unused ShaderState field material_alpha --- hw/xbox/nv2a/pgraph.c | 1 - hw/xbox/nv2a/shaders.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/hw/xbox/nv2a/pgraph.c b/hw/xbox/nv2a/pgraph.c index fbf58fce9a..0127371df2 100644 --- a/hw/xbox/nv2a/pgraph.c +++ b/hw/xbox/nv2a/pgraph.c @@ -4471,7 +4471,6 @@ static void pgraph_bind_shaders(PGRAPHState *pg) state.ambient_src = (enum MaterialColorSource)GET_MASK(pg->regs[NV_PGRAPH_CSV0_C], NV_PGRAPH_CSV0_C_AMBIENT); state.diffuse_src = (enum MaterialColorSource)GET_MASK(pg->regs[NV_PGRAPH_CSV0_C], NV_PGRAPH_CSV0_C_DIFFUSE); state.specular_src = (enum MaterialColorSource)GET_MASK(pg->regs[NV_PGRAPH_CSV0_C], NV_PGRAPH_CSV0_C_SPECULAR); - state.material_alpha = pg->material_alpha; } /* vertex program stuff */ diff --git a/hw/xbox/nv2a/shaders.h b/hw/xbox/nv2a/shaders.h index e58e37e2ea..0362da1099 100644 --- a/hw/xbox/nv2a/shaders.h +++ b/hw/xbox/nv2a/shaders.h @@ -78,8 +78,6 @@ typedef struct ShaderState { enum MaterialColorSource diffuse_src; enum MaterialColorSource specular_src; - float material_alpha; - bool lighting; enum VshLight light[NV2A_MAX_LIGHTS];