diff options
| author | degasus <wickmarkus@web.de> | 2013-10-07 17:19:47 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2013-10-12 20:29:56 +0200 |
| commit | 7c14463d11f816b1dd0cd2efd9bbe018f4d64a4a (patch) | |
| tree | 9a3202f6a6dc7396b295f8f03bf72ba129a04e39 /Source/Core/VideoCommon/Src/PixelShaderManager.cpp | |
| parent | 437761843850ce32974fd4729d7b8d7d0405a04f (diff) | |
ogl: implement useful constant buffer upload
this will remove the additional memcpy introduced in my last commit
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderManager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp index 3a13e287aa..970bdb6e58 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp @@ -95,9 +95,6 @@ void PixelShaderManager::Shutdown() void PixelShaderManager::SetConstants(u32 components) { - if (g_ActiveConfig.backend_info.APIType == API_OPENGL && !g_ActiveConfig.backend_info.bSupportsGLSLUBO) - dirty = true; - for (int i = 0; i < 2; ++i) { if (s_nColorsChanged[i]) @@ -359,7 +356,7 @@ void PixelShaderManager::SetConstants(u32 components) } } - if(dirty) + if(dirty && g_ActiveConfig.backend_info.APIType != API_OPENGL) { g_renderer->SetMultiPSConstant4fv(0, sizeof(constants)/16, (float*) &constants); dirty = false; |
