Working, but hideous, DDS loading code.
1 stupid typo and forgetting to cap the mip chain.