mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 09:22:05 +00:00
Add support for Dual source blending to older ATI cards that don't support 420pack but do support GL_ARB_blend_func_extended. This is more proper as well anyways.
This commit is contained in:
parent
5085cebaf3
commit
2e15440896
7 changed files with 53 additions and 27 deletions
|
@ -91,6 +91,14 @@ void ProgramShaderCache::SetProgramVariables(PCacheEntry &entry)
|
|||
if (entry.UniformLocations[a] != -1)
|
||||
glUniform1i(entry.UniformLocations[a], a);
|
||||
}
|
||||
if (g_ActiveConfig.backend_info.bSupportsGLSLBlend)
|
||||
{
|
||||
// So we don't support binding, but we do support extended blending
|
||||
// So we need to set a few more things here.
|
||||
// Bind our out locations
|
||||
glBindFragDataLocationIndexed(entry.prog_id, 0, 0, "ocol0");
|
||||
glBindFragDataLocationIndexed(entry.prog_id, 0, 1, "ocol1");
|
||||
}
|
||||
}
|
||||
|
||||
// Need to get some attribute locations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue