summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-09-05 23:20:21 -0400
committerGravatar bunnei2018-09-06 17:41:53 -0400
commit820f646458da55e4b273d1de8084f075834d0474 (patch)
treedc7993e5ecb6139ca8cb153b262cd7ce7d782a91 /src
parentMerge pull request #1248 from degasus/shader_fix (diff)
downloadyuzu-820f646458da55e4b273d1de8084f075834d0474.tar.gz
yuzu-820f646458da55e4b273d1de8084f075834d0474.tar.xz
yuzu-820f646458da55e4b273d1de8084f075834d0474.zip
gl_rasterizer: Call state.Apply only once on SetupShaders.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp6
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() {
237 } 237 }
238 } 238 }
239 239
240 state.Apply();
241
240 shader_program_manager->UseTrivialGeometryShader(); 242 shader_program_manager->UseTrivialGeometryShader();
241} 243}
242 244
@@ -666,8 +668,6 @@ u32 RasterizerOpenGL::SetupConstBuffers(Maxwell::ShaderStage stage, Shader& shad
666 current_bindpoint + bindpoint); 668 current_bindpoint + bindpoint);
667 } 669 }
668 670
669 state.Apply();
670
671 return current_bindpoint + static_cast<u32>(entries.size()); 671 return current_bindpoint + static_cast<u32>(entries.size());
672} 672}
673 673
@@ -714,8 +714,6 @@ u32 RasterizerOpenGL::SetupTextures(Maxwell::ShaderStage stage, Shader& shader,
714 } 714 }
715 } 715 }
716 716
717 state.Apply();
718
719 return current_unit + static_cast<u32>(entries.size()); 717 return current_unit + static_cast<u32>(entries.size());
720} 718}
721 719