diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-06 05:20:21 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-09-06 23:41:53 +0200 |
commit | 820f646458da55e4b273d1de8084f075834d0474 (patch) | |
tree | dc7993e5ecb6139ca8cb153b262cd7ce7d782a91 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1248 from degasus/shader_fix (diff) | |
download | yuzu-820f646458da55e4b273d1de8084f075834d0474.tar yuzu-820f646458da55e4b273d1de8084f075834d0474.tar.gz yuzu-820f646458da55e4b273d1de8084f075834d0474.tar.bz2 yuzu-820f646458da55e4b273d1de8084f075834d0474.tar.lz yuzu-820f646458da55e4b273d1de8084f075834d0474.tar.xz yuzu-820f646458da55e4b273d1de8084f075834d0474.tar.zst yuzu-820f646458da55e4b273d1de8084f075834d0474.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-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()); } |