Do not use undeclared format.

This commit is contained in:
Ignacio 2017-06-28 11:26:18 -07:00
parent fa03dfc291
commit 4fb0070b7e

View File

@ -186,7 +186,7 @@ int main(int argc, char *argv[])
header.setDX10Format(hasAlpha ? nv::DXGI_FORMAT_B8G8R8A8_UNORM : nv::DXGI_FORMAT_B8G8R8X8_UNORM);
}
else {
header.setDX10Format(hasAlpha ? nv::DXGI_FORMAT_R8G8B8A8_UNORM : nv::DXGI_FORMAT_R8G8B8X8_UNORM);
header.setDX10Format(nv::DXGI_FORMAT_R8G8B8A8_UNORM);
}
}