mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	shader_disk_cache: warn the user when ARB_get_program_binary is not supported.
This commit is contained in:
		
							parent
							
								
									b3cab3c450
								
							
						
					
					
						commit
						981ffb5090
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -365,6 +365,10 @@ void ShaderDiskCache::SaveDecompiled(u64 unique_identifier, | |||
| void ShaderDiskCache::SaveDump(u64 unique_identifier, GLuint program) { | ||||
|     if (!IsUsable()) | ||||
|         return; | ||||
|     if (!GLAD_GL_ARB_get_program_binary) { | ||||
|         LOG_WARNING(Render_OpenGL, "ARB_get_program_binary is not supported. Problems may occur if " | ||||
|                                    "use_disk_shader_cache is ON."); | ||||
|     } | ||||
| 
 | ||||
|     GLint binary_length{}; | ||||
|     glGetProgramiv(program, GL_PROGRAM_BINARY_LENGTH, &binary_length); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue