gl: reset texture scaling factor during bind

reset vertex textures as well
This commit is contained in:
kd-11 2016-07-13 00:28:40 +03:00
parent ea6f3ff5ed
commit 6401eefb26
1 changed files with 10 additions and 0 deletions

View File

@ -425,6 +425,11 @@ void GLGSRender::end()
glProgramUniform4f(m_program->id(), location, 1.f / width, 1.f / height, 1.f / depth, 1.0f);
}
else
{
//This shader may have been re-used with a different texture config. Have to reset this
glProgramUniform4f(m_program->id(), location, 1.f, 1.f, 1.f, 1.f);
}
}
}
}
@ -458,6 +463,11 @@ void GLGSRender::end()
glProgramUniform4f(m_program->id(), location, 1.f / width, 1.f / height, 1.f / depth, 1.0f);
}
else
{
//This shader may have been re-used with a different texture config. Have to reset this
glProgramUniform4f(m_program->id(), location, 1.f, 1.f, 1.f, 1.f);
}
}
}
}