nv2a: Drop unused ShaderState field material_alpha

This commit is contained in:
Matt Borgerson 2024-07-22 23:32:51 -07:00 committed by mborgerson
parent c6bad86739
commit a8d8ef5484
2 changed files with 0 additions and 3 deletions

View File

@ -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 */

View File

@ -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];