RSX: shaders fix and vertex texture implementation

This commit is contained in:
raven02 2014-12-17 22:01:59 +08:00
parent d2964c1fa4
commit 3fc471eb32
20 changed files with 1101 additions and 334 deletions

View file

@ -98,6 +98,13 @@ void GLProgram::SetTex(u32 index)
checkForGlError(fmt::Format("SetTex(%u - %d - %d)", id, index, loc));
}
void GLProgram::SetVTex(u32 index)
{
int loc = GetLocation(fmt::Format("vtex%u", index));
glProgramUniform1i(id, loc, index);
checkForGlError(fmt::Format("SetVTex(%u - %d - %d)", id, index, loc));
}
void GLProgram::Delete()
{
if(!IsCreated()) return;