yuzu-emu
/
yuzu
Archived
1
0
Fork 0

gl_rasterizer: Call state.Apply only once on SetupShaders.

This commit is contained in:
bunnei 2018-09-05 23:20:21 -04:00
parent fbaefc47a0
commit 820f646458
1 changed files with 2 additions and 4 deletions

View File

@ -237,6 +237,8 @@ void RasterizerOpenGL::SetupShaders() {
} }
} }
state.Apply();
shader_program_manager->UseTrivialGeometryShader(); shader_program_manager->UseTrivialGeometryShader();
} }
@ -666,8 +668,6 @@ u32 RasterizerOpenGL::SetupConstBuffers(Maxwell::ShaderStage stage, Shader& shad
current_bindpoint + bindpoint); current_bindpoint + bindpoint);
} }
state.Apply();
return current_bindpoint + static_cast<u32>(entries.size()); return current_bindpoint + static_cast<u32>(entries.size());
} }
@ -714,8 +714,6 @@ u32 RasterizerOpenGL::SetupTextures(Maxwell::ShaderStage stage, Shader& shader,
} }
} }
state.Apply();
return current_unit + static_cast<u32>(entries.size()); return current_unit + static_cast<u32>(entries.size());
} }