mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
More accurate audio interrupts (preparation for homebrew audio support). some minor cleanup in gl plugin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@226 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -94,16 +94,17 @@ void PixelShaderMngr::Init()
|
||||
GL_REPORT_ERROR();
|
||||
if( err != GL_NO_ERROR ) {
|
||||
ERROR_LOG("Failed to create color matrix fragment program\n");
|
||||
|
||||
SAFE_RELEASE_PROG(s_ColorMatrixProgram);
|
||||
glDeleteProgramsARB(1, &s_ColorMatrixProgram);
|
||||
s_ColorMatrixProgram = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void PixelShaderMngr::Shutdown()
|
||||
{
|
||||
SAFE_RELEASE_PROG(s_ColorMatrixProgram);
|
||||
glDeleteProgramsARB(1, &s_ColorMatrixProgram);
|
||||
s_ColorMatrixProgram = 0;
|
||||
PSCache::iterator iter = pshaders.begin();
|
||||
for (;iter!=pshaders.end();iter++)
|
||||
for (; iter != pshaders.end(); iter++)
|
||||
iter->second.Destroy();
|
||||
pshaders.clear();
|
||||
}
|
||||
|
Reference in New Issue
Block a user