forked from eden-emu/eden
		
	Merge pull request #3681 from lioncash/component
decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()
This commit is contained in:
		
						commit
						8fd45a009a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -212,10 +212,10 @@ u32 GetComponentSize(TextureFormat format, std::size_t component) { | ||||||
|         return 0; |         return 0; | ||||||
|     case TextureFormat::R8G24: |     case TextureFormat::R8G24: | ||||||
|         if (component == 0) { |         if (component == 0) { | ||||||
|             return 8; |             return 24; | ||||||
|         } |         } | ||||||
|         if (component == 1) { |         if (component == 1) { | ||||||
|             return 24; |             return 8; | ||||||
|         } |         } | ||||||
|         return 0; |         return 0; | ||||||
|     case TextureFormat::R8G8: |     case TextureFormat::R8G8: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rodrigo Locatti
						Rodrigo Locatti