mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
vulkan: fix shader:send(texture|buffer) not calling love.graphics.flushBatch.
This commit is contained in:
@@ -437,6 +437,9 @@ void Shader::updateUniform(const UniformInfo *info, int count)
|
||||
|
||||
void Shader::sendTextures(const UniformInfo *info, graphics::Texture **textures, int count)
|
||||
{
|
||||
if (current == this)
|
||||
Graphics::flushBatchedDrawsGlobal();
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
int resourceindex = info->resourceIndex + i;
|
||||
@@ -450,6 +453,9 @@ void Shader::sendTextures(const UniformInfo *info, graphics::Texture **textures,
|
||||
|
||||
void Shader::sendBuffers(const UniformInfo *info, love::graphics::Buffer **buffers, int count)
|
||||
{
|
||||
if (current == this)
|
||||
Graphics::flushBatchedDrawsGlobal();
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
int resourceindex = info->resourceIndex + i;
|
||||
|
||||
Reference in New Issue
Block a user