mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Let's have DispatchFlush check for drawcalls before calling DoFlush, too.
This commit is contained in:
1 parent
c80671d9ea
commit
d56e27aa2c
4 files changed
+20
-4
No files matched your search
@@ -149,7 +149,11 @@ public:
|
||||
DecodeVerts(decoded);
|
||||
}
|
||||
|
||||
void DispatchFlush() override { Flush(); }
|
||||
void DispatchFlush() override {
|
||||
if (!numDrawCalls)
|
||||
return;
|
||||
Flush();
|
||||
}
|
||||
|
||||
void ClearTrackedVertexArrays() override;
|
||||
|
||||
|
||||
@@ -139,7 +139,11 @@ public:
|
||||
DecodeVerts(decoded);
|
||||
}
|
||||
|
||||
void DispatchFlush() override { Flush(); }
|
||||
void DispatchFlush() override {
|
||||
if (!numDrawCalls)
|
||||
return;
|
||||
Flush();
|
||||
}
|
||||
|
||||
protected:
|
||||
// Not currently supported.
|
||||
|
||||
@@ -97,7 +97,11 @@ public:
|
||||
DoFlush();
|
||||
}
|
||||
|
||||
void DispatchFlush() override { Flush(); }
|
||||
void DispatchFlush() override {
|
||||
if (!numDrawCalls)
|
||||
return;
|
||||
Flush();
|
||||
}
|
||||
|
||||
GLPushBuffer *GetPushVertexBuffer() {
|
||||
return frameData_[render_->GetCurFrame()].pushVertex;
|
||||
|
||||
@@ -177,7 +177,11 @@ public:
|
||||
DoFlush();
|
||||
}
|
||||
|
||||
void DispatchFlush() override { Flush(); }
|
||||
void DispatchFlush() override {
|
||||
if (!numDrawCalls)
|
||||
return;
|
||||
Flush();
|
||||
}
|
||||
|
||||
VkPipelineLayout GetPipelineLayout() const {
|
||||
return pipelineLayout_;
|
||||
|
||||
Reference in new issue
Block a user