Made sure to use the texture format enum instead of the global defines.