softgpu : use switch case for texture format
Merge pull request #3441 from raven02/patch-23

softgpu : use switch case for texture format