mirror of https://github.com/RPCS3/rpcs3.git
gl: reset texture scaling factor during bind
reset vertex textures as well
This commit is contained in:
parent
ea6f3ff5ed
commit
6401eefb26
|
@ -425,6 +425,11 @@ void GLGSRender::end()
|
||||||
|
|
||||||
glProgramUniform4f(m_program->id(), location, 1.f / width, 1.f / height, 1.f / depth, 1.0f);
|
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);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue