Common: Support dual-source blend in GL::Program
This commit is contained in:
parent
75f206262c
commit
9b6a59329e
2 changed files with 6 additions and 0 deletions
|
|
@ -105,6 +105,11 @@ void Program::BindFragData(GLuint index /*= 0*/, const char* name /*= "o_col0"*/
|
|||
glBindFragDataLocation(m_program_id, index, name);
|
||||
}
|
||||
|
||||
void Program::BindFragDataIndexed(GLuint color_number /*= 0*/, const char* name /*= "o_col0"*/)
|
||||
{
|
||||
glBindFragDataLocationIndexed(m_program_id, color_number, 0, name);
|
||||
}
|
||||
|
||||
bool Program::Link()
|
||||
{
|
||||
glLinkProgram(m_program_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue