OpenGL: remove small optimization

This one was introduced to reduce the glBindTexture and glActiveTexture calls. But it was quite a bit of logic and only an improvment on uploading/creating a texture, which is done rarely.
This commit is contained in:
degasus
2014-01-21 10:34:48 +01:00
parent fe02833f13
commit 60632fda6f
3 changed files with 10 additions and 33 deletions

View File

@ -180,7 +180,6 @@ void VertexManager::vFlush()
{
if (usedtextures & (1 << i))
{
TextureCache::SetNextStage(i);
g_renderer->SetSamplerState(i % 4, i / 4);
FourTexUnits &tex = bpmem.tex[i >> 2];
TextureCache::TCacheEntryBase* tentry = TextureCache::Load(i,