mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	Merge pull request #4160 from ogniK5377/IsASTCSupported-fix
gl_device: Fix IsASTCSupported to scan all targets instead of just GL_TEXTURE_2D
This commit is contained in:
		
						commit
						ae1f709658
					
				@ -178,7 +178,7 @@ bool IsASTCSupported() {
 | 
				
			|||||||
        for (const GLenum format : formats) {
 | 
					        for (const GLenum format : formats) {
 | 
				
			||||||
            for (const GLenum support : required_support) {
 | 
					            for (const GLenum support : required_support) {
 | 
				
			||||||
                GLint value;
 | 
					                GLint value;
 | 
				
			||||||
                glGetInternalformativ(GL_TEXTURE_2D, format, support, 1, &value);
 | 
					                glGetInternalformativ(target, format, support, 1, &value);
 | 
				
			||||||
                if (value != GL_FULL_SUPPORT) {
 | 
					                if (value != GL_FULL_SUPPORT) {
 | 
				
			||||||
                    return false;
 | 
					                    return false;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user