2014-11-10 15:04:40 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
static inline DXGI_FORMAT fix_dxgi_format(DXGI_FORMAT format)
|
|
|
|
{
|
2015-02-08 16:29:56 -08:00
|
|
|
switch ((unsigned long)format) {
|
2019-06-22 22:13:45 -07:00
|
|
|
case DXGI_FORMAT_B8G8R8A8_UNORM_SRGB:
|
|
|
|
return DXGI_FORMAT_B8G8R8A8_UNORM;
|
|
|
|
case DXGI_FORMAT_R8G8B8A8_UNORM_SRGB:
|
|
|
|
return DXGI_FORMAT_R8G8B8A8_UNORM;
|
2014-11-10 15:04:40 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
return format;
|
|
|
|
}
|