mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 01:28:57 +00:00
only change shader if needed
This commit is contained in:
parent
85200db6a2
commit
687d74e6c2
3 changed files with 14 additions and 21 deletions
|
@ -1412,8 +1412,6 @@ void Renderer::ResetAPIState()
|
|||
{
|
||||
// Gets us to a reasonably sane state where it's possible to do things like
|
||||
// image copies with textured quads, etc.
|
||||
ProgramShaderCache::SetBothShaders(0, 0);
|
||||
|
||||
glDisable(GL_SCISSOR_TEST);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
glDisable(GL_CULL_FACE);
|
||||
|
@ -1434,8 +1432,6 @@ void Renderer::RestoreAPIState()
|
|||
VertexShaderManager::SetViewportChanged();
|
||||
|
||||
glPolygonMode(GL_FRONT_AND_BACK, g_ActiveConfig.bWireFrame ? GL_LINE : GL_FILL);
|
||||
|
||||
ProgramShaderCache::SetBothShaders(0, 0);
|
||||
|
||||
VertexManager *vm = (OGL::VertexManager*)g_vertex_manager;
|
||||
glBindBuffer(GL_ARRAY_BUFFER, vm->m_vertex_buffers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue