mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
vulkan: fix Shader::attach()
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user