mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
More dirtying
This commit is contained in:
parent
061131ec8a
commit
fd656c629d
2 changed files with 10 additions and 0 deletions
|
@ -128,6 +128,8 @@ void GPUgstate::Reset() {
|
|||
memset(gstate.boneMatrix, 0, sizeof(gstate.boneMatrix));
|
||||
|
||||
savedContextVersion = 1;
|
||||
|
||||
gstate_c.Dirty(DIRTY_CULL_PLANES);
|
||||
}
|
||||
|
||||
void GPUgstate::Save(u32_le *ptr) {
|
||||
|
@ -258,6 +260,8 @@ void GPUgstate::Restore(const u32_le *ptr) {
|
|||
|
||||
if (gpu)
|
||||
gpu->ResetMatrices();
|
||||
|
||||
gstate_c.Dirty(DIRTY_CULL_PLANES);
|
||||
}
|
||||
|
||||
bool vertTypeIsSkinningEnabled(u32 vertType) {
|
||||
|
@ -366,6 +370,9 @@ void GPUStateCache::DoState(PointerWrap &p) {
|
|||
} else {
|
||||
Do(p, savedContextVersion);
|
||||
}
|
||||
|
||||
if (p.GetMode() == PointerWrap::MODE_READ)
|
||||
gstate_c.Dirty(DIRTY_CULL_PLANES);
|
||||
}
|
||||
|
||||
static const char *const gpuUseFlagNames[32] = {
|
||||
|
|
|
@ -1081,6 +1081,7 @@ void SoftGPU::Execute_WorldMtxData(u32 op, u32 diff) {
|
|||
if (newVal != *target) {
|
||||
*target = newVal;
|
||||
dirtyFlags_ |= SoftDirty::TRANSFORM_MATRIX;
|
||||
gstate_c.Dirty(DIRTY_CULL_PLANES);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1101,6 +1102,7 @@ void SoftGPU::Execute_ViewMtxData(u32 op, u32 diff) {
|
|||
if (newVal != *target) {
|
||||
*target = newVal;
|
||||
dirtyFlags_ |= SoftDirty::TRANSFORM_MATRIX;
|
||||
gstate_c.Dirty(DIRTY_CULL_PLANES);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1121,6 +1123,7 @@ void SoftGPU::Execute_ProjMtxData(u32 op, u32 diff) {
|
|||
if (newVal != *target) {
|
||||
*target = newVal;
|
||||
dirtyFlags_ |= SoftDirty::TRANSFORM_MATRIX;
|
||||
gstate_c.Dirty(DIRTY_CULL_PLANES);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue