Skip to content

Commit

Permalink
nv2a: Drop unused ShaderState field material_alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Jul 23, 2024
1 parent c6bad86 commit a8d8ef5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion hw/xbox/nv2a/pgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 0 additions & 2 deletions hw/xbox/nv2a/shaders.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit a8d8ef5

Please sign in to comment.