mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
Rename internal batched draw code to be more clear
This commit is contained in:
@@ -428,7 +428,7 @@ void Shader::attach()
|
||||
{
|
||||
if (current != this)
|
||||
{
|
||||
Graphics::flushStreamDrawsGlobal();
|
||||
Graphics::flushBatchedDrawsGlobal();
|
||||
|
||||
gl.useProgram(program);
|
||||
current = this;
|
||||
@@ -479,7 +479,7 @@ void Shader::updateUniform(const UniformInfo *info, int count, bool internalupda
|
||||
}
|
||||
|
||||
if (!internalupdate)
|
||||
flushStreamDraws();
|
||||
flushBatchedDraws();
|
||||
|
||||
int location = info->location;
|
||||
UniformType type = info->baseType;
|
||||
@@ -577,7 +577,7 @@ void Shader::sendTextures(const UniformInfo *info, love::graphics::Texture **tex
|
||||
bool shaderactive = current == this;
|
||||
|
||||
if (!internalUpdate && shaderactive)
|
||||
flushStreamDraws();
|
||||
flushBatchedDraws();
|
||||
|
||||
count = std::min(count, info->count);
|
||||
|
||||
@@ -643,10 +643,10 @@ void Shader::sendTextures(const UniformInfo *info, love::graphics::Texture **tex
|
||||
}
|
||||
}
|
||||
|
||||
void Shader::flushStreamDraws() const
|
||||
void Shader::flushBatchedDraws() const
|
||||
{
|
||||
if (current == this)
|
||||
Graphics::flushStreamDrawsGlobal();
|
||||
Graphics::flushBatchedDrawsGlobal();
|
||||
}
|
||||
|
||||
bool Shader::hasUniform(const std::string &name) const
|
||||
|
||||
Reference in New Issue
Block a user