mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	OpenGL: Check if uniform block exists before updating it (#2581)
This commit is contained in:
		
							parent
							
								
									3a96dd023f
								
							
						
					
					
						commit
						e594e63bb5
					
				
					 1 changed files with 29 additions and 28 deletions
				
			
		|  | @ -1071,8 +1071,8 @@ void RasterizerOpenGL::SetShader() { | |||
| 
 | ||||
|         current_shader = shader_cache.emplace(config, std::move(shader)).first->second.get(); | ||||
| 
 | ||||
|         unsigned int block_index = | ||||
|             glGetUniformBlockIndex(current_shader->shader.handle, "shader_data"); | ||||
|         GLuint block_index = glGetUniformBlockIndex(current_shader->shader.handle, "shader_data"); | ||||
|         if (block_index != GL_INVALID_INDEX) { | ||||
|             GLint block_size; | ||||
|             glGetActiveUniformBlockiv(current_shader->shader.handle, block_index, | ||||
|                                       GL_UNIFORM_BLOCK_DATA_SIZE, &block_size); | ||||
|  | @ -1104,6 +1104,7 @@ void RasterizerOpenGL::SetShader() { | |||
|             SyncFogColor(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| void RasterizerOpenGL::SyncCullMode() { | ||||
|     const auto& regs = Pica::g_state.regs; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue