Add in UBOs, doesn't work yet. Still debugging here.

This commit is contained in:
Ryan Houdek
2011-12-09 17:30:05 -06:00
committed by Sonicadvance1
parent 5f0f26ef35
commit 4a84c6f742
12 changed files with 138 additions and 49 deletions

View File

@ -231,7 +231,8 @@ void VertexManager::vFlush()
if(g_ActiveConfig.bUseGLSL)
{
ProgramShaderCache::SetBothShaders(ps->glprogid, 0);
PixelShaderManager::SetConstants(); // Need to set these again
if(!g_ActiveConfig.backend_info.bSupportsGLSLUBO)
PixelShaderManager::SetConstants(); // Need to set these again, if we don't support UBO
if (g_nativeVertexFmt)
g_nativeVertexFmt->SetupVertexPointers();
for (int i = 0; i < 8; i++)