mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-08 07:55:35 +00:00
fmt::by_value, fmt::Format removed
This commit is contained in:
parent
15057ffc5e
commit
ce494f8847
35 changed files with 340 additions and 372 deletions
|
|
@ -23,7 +23,7 @@ int GLProgram::GetLocation(const std::string& name)
|
|||
m_locations[pos].name = name;
|
||||
|
||||
m_locations[pos].loc = glGetUniformLocation(id, name.c_str());
|
||||
checkForGlError(fmt::Format("glGetUniformLocation(0x%x, %s)", id, name.c_str()));
|
||||
checkForGlError(fmt::format("glGetUniformLocation(0x%x, %s)", id, name.c_str()));
|
||||
return m_locations[pos].loc;
|
||||
}
|
||||
|
||||
|
|
@ -95,16 +95,16 @@ void GLProgram::Use()
|
|||
|
||||
void GLProgram::SetTex(u32 index)
|
||||
{
|
||||
int loc = GetLocation(fmt::Format("tex%u", index));
|
||||
int loc = GetLocation(fmt::format("tex%u", index));
|
||||
glProgramUniform1i(id, loc, index);
|
||||
checkForGlError(fmt::Format("SetTex(%u - %d - %d)", id, index, loc));
|
||||
checkForGlError(fmt::format("SetTex(%u - %d - %d)", id, index, loc));
|
||||
}
|
||||
|
||||
void GLProgram::SetVTex(u32 index)
|
||||
{
|
||||
int loc = GetLocation(fmt::Format("vtex%u", index));
|
||||
int loc = GetLocation(fmt::format("vtex%u", index));
|
||||
glProgramUniform1i(id, loc, index);
|
||||
checkForGlError(fmt::Format("SetVTex(%u - %d - %d)", id, index, loc));
|
||||
checkForGlError(fmt::format("SetVTex(%u - %d - %d)", id, index, loc));
|
||||
}
|
||||
|
||||
void GLProgram::Delete()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue