Fix love.graphics.drawLayer.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-05-20 15:37:29 -03:00
parent fe81d79c6a
commit e03c763215
10 changed files with 37 additions and 64 deletions
+3 -1
View File
@@ -522,6 +522,8 @@ void Shader::attach()
{
if (current != this)
{
Graphics::flushStreamDrawsGlobal();
gl.useProgram(program);
current = this;
// retain/release happens in Graphics::setShader.
@@ -777,7 +779,7 @@ void Shader::setVideoTextures(Texture *ytexture, Texture *cbtexture, Texture *cr
const UniformInfo *info = builtinUniformInfo[builtins[i]];
if (info != nullptr)
sendTextures(info, &textures[i], 1);
sendTextures(info, &textures[i], 1, true);
}
}