mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 03:08:36 +12:00
gl: reset texture scaling factor during bind
reset vertex textures as well
This commit is contained in:
parent
ea6f3ff5ed
commit
6401eefb26
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue