vulkan: fix Shader::attach()

This commit is contained in:
niki
2022-07-16 17:52:29 +02:00
parent ac9d8ec2a0
commit 4c33d0aa36
2 changed files with 19 additions and 10 deletions
+4 -1
View File
@@ -22,7 +22,10 @@ namespace love {
}
void attach() override {
Shader::current = this;
if (Shader::current != this) {
Graphics::flushBatchedDrawsGlobal();
Shader::current = this;
}
}
ptrdiff_t getHandle() const { return 0; }