Let libctru manage output attribute clock enable

This commit is contained in:
fincs 2015-12-01 13:31:42 +01:00
parent 43bdd7e339
commit 2692ea5e7d

View File

@ -201,8 +201,7 @@ void C3Di_UpdateContext(void)
}
ctx->flags &= ~C3DiF_TexAll;
GPUCMD_AddMaskedWrite(GPUREG_SH_OUTATTR_CLOCK, 0x2, units<<8); // enables texcoord outputs
GPUCMD_AddWrite(GPUREG_TEXUNIT_CONFIG, 0x00011000|units); // enables texture units
GPUCMD_AddWrite(GPUREG_TEXUNIT_CONFIG, 0x00011000|units); // Enable texture units
}
if (ctx->flags & C3DiF_TexEnvBuf)
@ -229,7 +228,6 @@ void C3Di_UpdateContext(void)
u32 enable = env != NULL;
GPUCMD_AddWrite(GPUREG_LIGHTING_ENABLE0, enable);
GPUCMD_AddWrite(GPUREG_LIGHTING_ENABLE1, !enable);
GPUCMD_AddMaskedWrite(GPUREG_SH_OUTATTR_CLOCK, 0x8, enable<<24); // Enable normalquat (& view?) outputs
ctx->flags &= ~C3DiF_LightEnv;
}