mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
Unify the clearing of variables after a draw call
This commit is contained in:
1 parent
64ee5675b8
commit
10ccbfd68c
5 files changed
+26
-83
No files matched your search
@@ -1014,27 +1014,10 @@ void DrawEngineVulkan::DoFlush() {
|
||||
decOptions_.applySkinInDecode = g_Config.bSoftwareSkinning;
|
||||
}
|
||||
|
||||
gpuStats.numFlushes++;
|
||||
gpuStats.numDrawCalls += numDrawInds_;
|
||||
gpuStats.numVertexDecodes += numDrawVerts_;
|
||||
gpuStats.numVertsSubmitted += vertexCountInDrawCalls_;
|
||||
ResetAfterDrawInline();
|
||||
|
||||
indexGen.Reset();
|
||||
decodedVerts_ = 0;
|
||||
numDrawVerts_ = 0;
|
||||
numDrawInds_ = 0;
|
||||
vertexCountInDrawCalls_ = 0;
|
||||
decodeIndsCounter_ = 0;
|
||||
decodeVertsCounter_ = 0;
|
||||
gstate_c.vertexFullAlpha = true;
|
||||
framebufferManager_->SetColorUpdated(gstate_c.skipDrawReason);
|
||||
|
||||
// Now seems as good a time as any to reset the min/max coords, which we may examine later.
|
||||
gstate_c.vertBounds.minU = 512;
|
||||
gstate_c.vertBounds.minV = 512;
|
||||
gstate_c.vertBounds.maxU = 0;
|
||||
gstate_c.vertBounds.maxV = 0;
|
||||
|
||||
GPUDebug::NotifyDraw();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user