diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-07 01:19:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 01:19:16 +0200 |
commit | 009a2cc9ccb214f537876475acfc92bf918d4575 (patch) | |
tree | fbb7b07c9098ef0bbe52780adf5c7e4e8b2c6c23 /src/video_core | |
parent | Merge pull request #1254 from bunnei/ipa-saturate (diff) | |
parent | gl_rasterizer: Call state.Apply only once on SetupShaders. (diff) | |
download | yuzu-009a2cc9ccb214f537876475acfc92bf918d4575.tar yuzu-009a2cc9ccb214f537876475acfc92bf918d4575.tar.gz yuzu-009a2cc9ccb214f537876475acfc92bf918d4575.tar.bz2 yuzu-009a2cc9ccb214f537876475acfc92bf918d4575.tar.lz yuzu-009a2cc9ccb214f537876475acfc92bf918d4575.tar.xz yuzu-009a2cc9ccb214f537876475acfc92bf918d4575.tar.zst yuzu-009a2cc9ccb214f537876475acfc92bf918d4575.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 5d493a2b2..6e89fa6e3 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/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()); } |