Skip to content
Snippets Groups Projects
Commit 820f6464 authored by bunnei's avatar bunnei
Browse files

gl_rasterizer: Call state.Apply only once on SetupShaders.

parent fbaefc47
No related branches found
No related tags found
No related merge requests found
...@@ -237,6 +237,8 @@ void RasterizerOpenGL::SetupShaders() { ...@@ -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 ...@@ -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, ...@@ -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());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment