Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #191 from Jezze/for-dolphin
Some cleanups for OGL/Vertexmanager.cpp
  • Loading branch information
neobrain committed Mar 18, 2014
2 parents c11aade + ae260e5 commit 51fdf8a
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions Source/Core/VideoBackends/OGL/VertexManager.cpp
Expand Up @@ -143,19 +143,11 @@ void VertexManager::vFlush(bool useDstAlpha)
// Makes sure we can actually do Dual source blending
bool dualSourcePossible = g_ActiveConfig.backend_info.bSupportsDualSourceBlend;

// finally bind
if (dualSourcePossible)
// If host supports GL_ARB_blend_func_extended, we can do dst alpha in
// the same pass as regular rendering.
if (useDstAlpha && dualSourcePossible)
{
if (useDstAlpha)
{
// If host supports GL_ARB_blend_func_extended, we can do dst alpha in
// the same pass as regular rendering.
ProgramShaderCache::SetShader(DSTALPHA_DUAL_SOURCE_BLEND, g_nativeVertexFmt->m_components);
}
else
{
ProgramShaderCache::SetShader(DSTALPHA_NONE,g_nativeVertexFmt->m_components);
}
ProgramShaderCache::SetShader(DSTALPHA_DUAL_SOURCE_BLEND, g_nativeVertexFmt->m_components);
}
else
{
Expand All @@ -166,8 +158,7 @@ void VertexManager::vFlush(bool useDstAlpha)
ProgramShaderCache::UploadConstants();

// setup the pointers
if (g_nativeVertexFmt)
g_nativeVertexFmt->SetupVertexPointers();
g_nativeVertexFmt->SetupVertexPointers();
GL_REPORT_ERRORD();

Draw(stride);
Expand Down

0 comments on commit 51fdf8a

Please sign in to comment.