Common: Support dual-source blend in GL::Program
This commit is contained in:
parent
75f206262c
commit
9b6a59329e
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue