GPU: Dirty params when converting viewport state.

This flag will be false when we convert next time, so parameters won't get
updated as expected.
This commit is contained in:
Unknown W. Brackets authored and Henrik Rydgård committed 2022-09-10 09:32:11 +02:00
1 parent fbc02bdf12
commit 38ba29240b
4 files changed
+28

No files matched your search

+7
View File
@@ -597,6 +597,13 @@ rotateVBO:
framebufferManager_->GetRenderWidth(), framebufferManager_->GetRenderHeight(),
framebufferManager_->GetTargetBufferWidth(), framebufferManager_->GetTargetBufferHeight(),
vpAndScissor);
if (vpAndScissor.dirtyProj) {
gstate_c.Dirty(DIRTY_PROJMATRIX);
}
if (vpAndScissor.dirtyDepth) {
gstate_c.Dirty(DIRTY_DEPTHRANGE);
}
}
int maxIndex = indexGen.MaxIndex();
+7
View File
@@ -569,6 +569,13 @@ rotateVBO:
framebufferManager_->GetRenderWidth(), framebufferManager_->GetRenderHeight(),
framebufferManager_->GetTargetBufferWidth(), framebufferManager_->GetTargetBufferHeight(),
vpAndScissor);
if (vpAndScissor.dirtyProj) {
gstate_c.Dirty(DIRTY_PROJMATRIX);
}
if (vpAndScissor.dirtyDepth) {
gstate_c.Dirty(DIRTY_DEPTHRANGE);
}
}
int maxIndex = indexGen.MaxIndex();
+7
View File
@@ -366,6 +366,13 @@ void DrawEngineGLES::DoFlush() {
framebufferManager_->GetRenderWidth(), framebufferManager_->GetRenderHeight(),
framebufferManager_->GetTargetBufferWidth(), framebufferManager_->GetTargetBufferHeight(),
vpAndScissor);
if (vpAndScissor.dirtyProj) {
gstate_c.Dirty(DIRTY_PROJMATRIX);
}
if (vpAndScissor.dirtyDepth) {
gstate_c.Dirty(DIRTY_DEPTHRANGE);
}
}
int maxIndex = indexGen.MaxIndex();
+7
View File
@@ -868,6 +868,13 @@ void DrawEngineVulkan::DoFlush() {
framebufferManager_->GetRenderWidth(), framebufferManager_->GetRenderHeight(),
framebufferManager_->GetTargetBufferWidth(), framebufferManager_->GetTargetBufferHeight(),
vpAndScissor);
if (vpAndScissor.dirtyProj) {
gstate_c.Dirty(DIRTY_PROJMATRIX);
}
if (vpAndScissor.dirtyDepth) {
gstate_c.Dirty(DIRTY_DEPTHRANGE);
}
}
int maxIndex = indexGen.MaxIndex();