Browse Source
Merge pull request #1255 from bunnei/minor-opt
gl_rasterizer: Call state.Apply only once on SetupShaders.
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
4 deletions
-
src/video_core/renderer_opengl/gl_rasterizer.cpp
|
|
|
@ -237,6 +237,8 @@ void RasterizerOpenGL::SetupShaders() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
state.Apply(); |
|
|
|
|
|
|
|
shader_program_manager->UseTrivialGeometryShader(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -666,8 +668,6 @@ u32 RasterizerOpenGL::SetupConstBuffers(Maxwell::ShaderStage stage, Shader& shad |
|
|
|
current_bindpoint + bindpoint); |
|
|
|
} |
|
|
|
|
|
|
|
state.Apply(); |
|
|
|
|
|
|
|
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()); |
|
|
|
} |
|
|
|
|
|
|
|
|