Common: Support dual-source blend in GL::Program

This commit is contained in:
Connor McLaughlin 2019-10-19 17:35:36 +10:00
parent 75f206262c
commit 9b6a59329e
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -21,6 +21,7 @@ public:
void BindDefaultAttributes();
void BindFragData(GLuint index = 0, const char* name = "o_col0");
void BindFragDataIndexed(GLuint color_number = 0, const char* name = "o_col0");
bool Link();