80eacdf89b
Use a large flat array to look up texture formats. This allows us to properly implement formats with different component types. It should also be faster.