Correct Z write for rendering weapons and muzzleflashes (fixes both in fact)

This commit is contained in:
Silent 2019-03-30 12:51:38 +01:00
parent 0d7cd7dec9
commit 3a75bff65f
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1

View File

@ -409,9 +409,11 @@ void RenderWeaponPedsForPC()
{
RwScopedRenderState vertexAlpha(rwRENDERSTATEVERTEXALPHAENABLE);
RwScopedRenderState zWrite(rwRENDERSTATEZWRITEENABLE);
RwScopedRenderState fogEnable(rwRENDERSTATEFOGENABLE);
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, reinterpret_cast<void*>(TRUE));
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, FALSE);
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, reinterpret_cast<void*>(TRUE));
RwRenderStateSet(rwRENDERSTATEFOGENABLE, reinterpret_cast<void*>(TRUE));
const bool renderWeapon = IgnoresWeaponPedsForPCFix();