mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-31 07:59:02 -05:00 
			
		
		
		
	gl_rasterizer: Call state.Apply only once on SetupShaders.
This commit is contained in:
		| @@ -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()); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bunnei
					bunnei