summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/VertexManager.cpp
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2014-03-18 20:47:44 +0100
committerTony Wasserka <neobrainx@gmail.com>2014-03-18 20:47:44 +0100
commit51fdf8a9b24804d10fd0024f799a0265f637f0b9 (patch)
treeaacc5eebd743f21a1a0dc3b1c9ac0d92db180f92 /Source/Core/VideoBackends/OGL/VertexManager.cpp
parentc11aadee414c49e4b1c9e0e0711d7637531e3cd9 (diff)
parentae260e55e45a745156ad7d5fe3e5eb38e4718df7 (diff)
Merge pull request #191 from Jezze/for-dolphin
Some cleanups for OGL/Vertexmanager.cpp
Diffstat (limited to 'Source/Core/VideoBackends/OGL/VertexManager.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/VertexManager.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/Source/Core/VideoBackends/OGL/VertexManager.cpp b/Source/Core/VideoBackends/OGL/VertexManager.cpp
index e58b2d777f..b8bc676169 100644
--- a/Source/Core/VideoBackends/OGL/VertexManager.cpp
+++ b/Source/Core/VideoBackends/OGL/VertexManager.cpp
@@ -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
{
@@ -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);